Ex-patriot vs Immigrant

From a very wise friend of mine:

So if you were born in a first world country and choose to live in a lesser country, you are called an expatriot.

If you were born in a lesser country and came to live in a first world country, you are called an immigrant.
Am I right or are there some nuances I’m missing?