If you release a cover, remix or a song that uses samples, it's likely you will 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 and copyright.