MS in USA

Do students have to study a fixed set of subjects or can they individually form their major?