Need some relationship advice

Okay so i am 16 and a sophomore in high school. I’m dating a guy who’s 17 almost 18 and a senior. As cliche as this may sound we’ve been actually a decent couple and our relationship isn’t toxic at all. I do have very very strong emotions for him and likewise for him. But he will be enlisting in the army on Dec.7th. He’ll be at basic training by like June. I’m not sure what to do or feel. We’ve talked about it a lot and we’ve both agreed that if we need to split by that time we will. But i don’t want that. I have a very strong and deep connection to him. Him and i constantly talk about our future together. For example moving in together, and if we’re together in two years when i graduate....Is this bad? What should i do? I really just need some advice because i don’t want to be hurt but i just love him so much