Good developers can only write good code if they can think and plan. Neither of these is ever a sprint objective. The objective of a sprint -- in practice -- is always to bang out the absolutely minimal quality hack required to complete the sprint's objectives.