Foreigners and non-residents can indeed play Mega Millions but their tickets must be purchased in the United States.