In most situations you will find that the music you play is protected by copyright and it will need to be covered by a licence before you use it. Every country has different rules. Always do your homework as you could be sued for damages.