Yes, I agree that a DM needs to be flexible. And hey, you do whatever works for you. :)
But I'm talking about creating preparatory materials for a campaign / module. This way you can set up the encounters ahead of time, have an idea of the story, etc. That way, when your players go completely...