UX expert Josh Seiden recently posted his affirmative thoughts about the question "Should designers code?"
If you’re “web-designing” solely as an artistic, self-directed endeavor, then “no” (but then we might prefer the term web art as opposed to web design). If you’re web-designing as part of anything larger, and you want to respect the development process and environmentalists, then “as much as possible, yes.”
http://joshuasei