If your question mean that "Should quality be important to programmer as a professional", the answer is, "Unequivocally yes".
However if your question is "do programmers care about quality personally", answer is, "It depends".
On the one hand there are programmers who are not satisfied until they have perfected the code, but on the other hand there are programmers whose main interest is problem solving, once they have the solution, quality seems like irksome details to them.
If you fall in the latter kind (as I do, I am not proud to admit), you must try to fight and overcome this tendency. Of course sometimes perfect can be enemy of good too.
Update: Now why are some programmers perfectionists and other analytical. I believe the answer to that lies in psychology and genetics. Investigating that is both outside the limit of this answer and my knowledge as well. That said, I will note following
Although these are not necessarily mutually exclusive, really good programmers are more comfortable with problem solving than quality, as I believe programming at its core is about problem solving.
- doesn't however mean that if you are good at problem solving you are necessarily a good programmer. To use mathematical terms problem solving is a "necessary" condition whereas aspiring for quality is a "sufficient" one.