If you know this in advance, sure. But I guess the author of the article found out about this the hard way.
On the other hand, no one expects to pay "an exit tax from a country".