Yeah, that's GMing 101. If the players have a better idea, go with it. Or sometimes, if they theorize something much worse for themselves than you had planned, that can work, too.
"Stop giving the GM ideas," is regularly heard around my gaming table.