Commuting to college everyday?

Can i have some opinions on commuting if you’ve done it before. I’m starting grad school this fall and may need to commute 40 minutes away everyday if i can’t find housing closer, which i don’t want to do. Is it a good thing to drive to school?