Yes, you can listen to music while riding a motorcycle. Music improves mood and mental health, and experiencing beautiful scenery while listening to musical tunes will be so much fun.
But riders should avoid putting on headphones or earbuds because they block the exterior sounds. Earbuds have a higher noise reduction system which will ultimately make your ears detached from exterior sounds.
Choosing a Bluetooth wireless helmet is a great option because you'll be able to answer calls and listen to music when sitting in traffic. But, of course, you'll also be able to hear exterior sounds too.