Hope but move on??

My ex and I just broke up because we realized we need time to figure out who we are at the moment.

I want to know if there’s a way I can hold on to hope that we’ll get back together one day, while also moving on and focusing on myself???