Definitely! It always depends on what I'm writing, though. I'm a lover of third wave ska, hardcore, and pop-punk music, but there's no way I can really focus when I'm writing on a topic I'm not 100% knowledgable in.
When there's research involved or I need to be able to think clearly, I listen to some New Wave or punk (specifically The Clash), or sometimes even first wave ska (The Specials). Works great for me since it's more mellow :)