If you release a cover, remix or a song using samples, you will likely need to purchase a license before releasing your music to avoid any possible legal action from the original copyright holders. Take a look at this article for more details on music licensing.