It may matter tremendously if SHTF, as a difference between few missiles that get trough Patriot defenses hitting some random part of fab vs fab looking like Mariupol steel plant or Bakhmut. russian war in Ukraine gives us some very good lessons is east vs west current warfare, if you care to look for them
I don't think "production during the war" is the point. I believe the point GP is making is that production can continue after hostilities cease if and only if the plant is intact.
Being beyond the range of 155mm artillery makes that much more likely.
Honestly, if this is what you're worried about those few miles/km's wont matter.