Yeah, but it depends on how prevalent such magic and flying things (like dragons are).
And for that matter, what would you do differently to cope with such things anyway?
Also-on a side note, how do things like Minas Tirith and Isengard compare with real life fortifications...