The official Mega Millions website states it quite clearly: "Visitors to the United States are always welcome to purchase tickets for our game from an American lottery retailer while they are visiting this country. You do not need to be a resident to win."
In 2024, the revenue generated by the National Lottery in Brazil surpassed 18.1 billion Brazilian, which represents an increase of 8.2 percent in relation to the previous year. Brazil's National Lottery is run by the state-owned bank Caixa Econmica Federal.