Very true. Moving may buy you some time. In the end however you’re basically in a situation like the novel On the Beach.
Less the radiation that is impossibly sterilizing the planet in that fiction...