You do not need to live in an EU country to buy tickets. For example, Switzerland is not an EU member and has played EuroMillions since October 2004.