Code is great for creativity and working in the flow state.
Both are useful. I'd also argue that both are necessary.