If you use music that other people created, no matter how you use it, you need to get a license.
This is true even if you are giving away your project for free, or if it's for a non-profit. However, you do not need permission to use songs that you know are in the Public Domain.