If you’re looking to cover a song, use a sample, or want to write an interpolation, it’s key that you understand how licensing works. There are different rules and rights for using existing music depending on what you want to do. So make sure you have your bases covered. The last thing you want is for your song to be a success, and then get hit with a legal notice by someone with more resources than you. Luckily, Ditto wrote a great guide with resources on how to properly license music.
https://dittomusic.com/en/blog/what-license-do-i-need-for-my-music