It seems to depend on the person, really.
Sometimes, music is a necessary mood-setter or white noise. Sometimes it's a distraction.
IIRC, some time ago, I read part of a book on animation, where the author got a job near one of their long-time mentors. He asked the man what kind of music he listened to while he drew (like many of his peers, he usually listened to something, like classical music, to pass time while working), and the older guy turned on him: he didn't listen to anything, he just drew. "I'm not smart enough to do two things at once!" he said. The author tried turning off his music, and found that he was more productive; even if he didn't think he was dividing his attention, he was.
I'm not saying this is necessarily true for all creators, of course, but when I'm "in the zone," I honestly do not hear the music... and if I'm having trouble getting there, music can be more of a distraction than a help. I do sometimes listen, but more when I'm spitballing or not seriously working; I also have an ambient noise track that can be used to drown out background noise without distracting me with a tune.
So, if music works for you, use it. If you find you're not getting as much done, try turning it off once you get past the brainstorming stage and need to focus on production. It might help, or it might not.
JMHO...