I think this is completely up to you and how open you are to the possibility of this person/relationship. I know people who met while traveling abroad for a couple weeks or during a short out of town visit who are married now. So it totally can happen, you just have to be open-minded to it. But also completely valid to not want to invest time in someone who's moving away soon, I think that's understandable. I don't think there's a right or wrong way to pursue it, just whatever feels aligned to you.