Yes, there are government codes that make sure that online casinos are safe to use. They are required to have satisfactory encryption levels and payment methods to be licensed. You only need to be careful so you don’t choose the unregulated ones.