With universities there are usually some basic requirements for graduation, which may include things like math and writing requirements (along with other requirements such as sciences, humanities, languages, etc.) but there is flexibility in how and when you fulfill them.