It is legal in most cases. But you have to take into account where you live and what the laws are in that state. Not every state shares the same classification for fantasy sports and some believe it is still out-and-out betting. But other states have liberated their betting laws and it’s no longer an issue. Check with the site that you wish to use and they can tell you if you can play or not.