Yes. My rule of thumb when DMing is that the NPCs motivations don't really change, their goals rarely do, but their means and plans change as the situation warrants. So then as soon as the players do something unexpected, I only have to ask, "Well, what would NPC X do about that?"
You do...