That's correct.
Of course, the travel would be dangerous. There are people actively searching for them to kill them, but it would be possible. Neighbouring countries have the authority to let families through if they have a visa. That would secure their onward journey.