Do long distance relationships work?

So my friend and I like each other we’re both 18, but I’m turning 19 in September so he’s seven months younger than me. He’s going to be a freshman and I’m gonna be a sophomore in college, and our colleges are 45 min ish apart.

He’s only in the area for 10 more days before flying back to home to pack his stuff for college then he’s coming back August 26.

Do long distances work? I know he’s gonna be like an hour away but I have my car and we could see each other? We’re just goin with the flow right now