(Assuming 90min journey one-way) It’s doable, and I know people who have done this, but I certainly wouldn’t recommend it. It’s more something people do if they have no other options rather then a sensible way to live.
It’s worth noting your journey will inevitably be more like 2 hours as you’ll need to accommodate either natural journey timetable variation & delays or account for traffic & parking. You’ll also have to manage a potentially awkward timetable including late nights in libraries etc.
You also need to accept not having a student life, or all the offerings of the students union (these typically happen evenings & weekends).