Generally, you are not allowed to purchase online lottery tickets outside of your country of residence. To avoid any kind of issues, stick to the lottery sites that are operating in your area.