Boyfriend moving away in 10 weeks?

He's saying he doesn't know what the exact plans are and it's still too early to tell but we'll get around it. He's going for a job/school thing. I am so proud of him and happy but it's distance. I used to drive to tracy to see him but now that he's moving to San Francisco, I won't be able to commute like I used to... I told him I'm upset about it and he's like, it'll all be good hopefully. We've only been dating for 7 months. It's too soon to end over this. 
Does this mean we are over? How do I work with this? Does long distance relationship work?