Possible Commuter—Can I Still Keep My Friends?

I’m a current freshman at a 4 year university living in the dorms. I’ve made a few friends so far from living here, but I truly hate the dorms and the bathrooms. I live about 30 mins from my school so I’m considering commuting for sophomore year instead of living on campus. A lot of my friends are in demanding majors so I know that I may not be able to see them during the week but I’m willing to come down to hang on weekends and I’ll be there at least until 8 or 9 on school nights. I think I’ll be able to keep them all because of this and it would work better for my budget and extreme anxiety. Does anyone have any experience keeping friends while commuting?