I wanted to know if the use of copyrighted music is allowed.
There are only two ways you can use copyrighted materials that you did not create.
If you meet these requirements you still need to be careful about including the material in your code repository.