I had to sell mne before I came to uni, honestly broke my heart. But there was no way I'd be able to afford to keep even one. My halls are over 5k a year, which leaves me with about 1k of student finance to live on. Which I know is a lot more than other people get but there is no way I could afford any vets fees, livery, farrier, tack, etc as well as supporting my studies. Textbooks alone are £50+.
Also not many unis have close livery yards, so you may need a car. Which is more money on top.
Personally I would have plenty of time to keep a horse so that wouldn't be an issue for me, although obviously depends on the course and the uni. I know some people have struggled with time and have sent their horse home half way through the year.
It is perfectly do able, but you will have to look at the ins and outs of it.