Depends on the particular song - for most of them, you end up sharing the revenue with the copyright holder. That's been the case for a bunch of mine (and others that I know of). No legal issues! You can check the copyright policy ahead of time - YouTube has a great resource through the dashboard for it.