Yes, they can do so. To live in the US with a student visa holder until the end of their authorized stay, spouses and minor children must obtain F2 or M2 visas. However, the dependent spouse is not permitted to enroll in a full-time program at a recognized institution or take up paid work. Children with F2 status are permitted to start or continue their education at a recognized school. They cannot, however, register for a full-time course of study in a college or university.