Do long distance relationships work!?

So I'm heading off to college this year. I'll be staying in state but my boyfriend is going to be a senior in high school. I'll be 40 minutes away from him and I feel like we can make things work. I can see him on the weekend or even the weekday because i can take a bus home. How do you make long distance relationships work? Especially if we have different schedules? I really really do love him and I don't want to lose him. I'm just worried it's not gonna work and I'm gonna be heartbroken. My friends think he'll cheat on me or if he was in my situation he wouldn't want anyone holding him back. I'm just not sure what to do.... Please help