Yes, absolutely.
I see the knowledged gained while writting the code to be the most valuable artifact, not the code itself. For me this helps reduce attachment to code.
Also, good statictypes. They let me refactor recklessly and the red squiggles will guide me to making it right