Depends on the developer and on their organization they work for. Ideally, most do, but the pressures of work and the styles of project management sometimes sideline that, or the team ends up in survival mode where they merely try to stave off the inevitable spaghetti apocalypse