The management of students in universities is relatively loose. After all, we are all adults, mature in life and have a correct understanding of society, so students are allowed to go in and out according to their own wishes.
But it does not rule out that some universities are strictly managed. Generally speaking, ordinary colleges and universities are allowed.