Yeah. It really depends on your motivation. Joking about differences between people isn't necessarily hateful. It's a sensitive topic because it has been used by racist people to incite hatred. But it doesn't have to be.
If you are ever in a relationship with someone from a different culture it really isn't possible to avoid joking about their background sometimes, but in that context it clearly isn't hateful either.
Something best done only on situations where you are undoubtedly positive towards the ethnic group you are making jokes about.