Absolutely. That's what 'worldbuilding' is.
If your world has spelljamming ships, or giant flying monsters that can attack cities or fortified castles, then honestly you should already know what effect that has on the design of fortifications, potential counter-measures, etc., in your world...