So I want to do the Masuda method for Pokémon and I’m gonna restart my game and transfer Pokémon to my friends game so I don’t lose my Pokémon. If I change my country I’m in does that change country of origin?
You just have to play the game in a different language.
Masuda method is not based on location at all, it's based entirely on the language identifier associated with the Pokemon, which is based on the language of the game it was obtained in.
Source