Yes, online gambling is legal. But you should choose licenced sites to be sure that you play in a safe place.