Yes,
Under the following exception:
334.12 Uses Not Permitted.
(A) Types NM, NMC, and NMS. Types NM, NMC, and NMS cables shall not be permitted as follows:
(1) In any dwelling or structure not specifically permitted in 334.10(1), (2), and (3)
Exception: Type NM, NMC, and NMS cable shall be permitted in Type I and II construction when installed within raceways permitted to be installed in Type I and II construction.