What should I do? Am i ready?

So me and my boyfriend were thinking of having sex and I’ve been really excited and now I’m starting to get second thoughts. He’s enrolled into the navy so we won’t be seeing each other as much as we do, I think I’m just afraid to give that part of me to someone if I’m unsure about the future. What do you think the best thing to do is