There are different rules about the occupancy of cellars and basements in one- and two-family dwellings. You can download a brochure on the topic here.