Yes, usually, it is legal. However, you must always check the laws related to online gambling, including gambling at XRP/Ripple online casinos in your country.