Most likely allowed unless prohibited by local ordinance, however, to make sure check the plans for type construction and compare to 334.10
334.10Uses Permitted.
Type NM, Type NMC, and Type NMS cables shall be permitted to be used in the following,
except as prohibited in 334.12:
(1) One- and two-family dwellings and their attached or detached garages, and their storage buildings.
(2) Multifamily dwellings permitted to be of Types III, IV,and V construction.
(3) Other structures permitted to be of Types III, IV, and V construction. Cables shall be concealed within walls, floors, or ceilings that provide a thermal barrier of material that has at least a 15-minute finish rating as identified in listings of fire-rated assemblies