Yes, of course, all card games are legal. But before you start playing at an online casino you should check if it has a license, you can find it on every site.