Not sure if I miss him or just miss having someone.

Recently I my boyfriend and I broke up because we both wanted different things for the future. However now I feel lonely. I dont know if it was right for us to break up over something that is going to happen in 5 months. He wanted a future with marriage and kids and I want to see the world and live before setteling down.