It is possible to exist in both camps. The quality of the process affects the quality of the product, and the quality of your thought affects the quality of the process. It's a cycle of continual learning, and from that perspective, thought, process and product are indivisible.
Treating code as a means to an end doesn't guarantee success for your product anymore than treating code as a craft.