Your question lacks specifics --
300.2 Limitations
C) Cond uctors of Different Systems.
(1) 1000 Volts, Nominal, or Less. Conductors of ac and dc circuits, rated 1000 volts, nominal, or less, shall be permitted to occupy the same equipment wiring enclosure, cable, or raceway. All conductors shall have an insulation rating equal to at least the maximum circuit voltage applied to any conductor within the enclosure, cable, or raceway.
Secondary wiring to electric-discharge lamps of 1000 volts or less, if insulated for the secondary voltage involved, shall be permitted to occupy the same luminaire, sign, or outline lighting enclosure as the branch-circuit conductors.
Informational Note No. 1: See 725.136(A) for Class 2 and Class 3 circuit conductors.
Informational Note No. 2: See 690.4(B) for photovoltaic source and output circuits.