That's how the original Third Reich V-rockets worked as well, and they were shockingly inaccurate. It didn't matter for the Nazis, as their intention was to spread terror among the British population instead of actually hitting specific military targets, but in a modern war waged under the rules of war, "collateral damage" can actually be a war crime, and even if not, it will provoke significant opposition.
This can at the moment be seen in Ukraine, where Ukraine regularly (and rightfully, IMHO) claims that Russia's strikes violate the rules of war by hitting civilian infrastructure en masse, and where Ukraine's strike capability against Russia is severely impeded by Russian GPS jamming (that also causes serious safety issues for civilian airlines [1]), but also in the current Israel/Palestine war, where Hamas regularly claims that Israeli strikes are too imprecise [2] or unguided [3], while Israel claims it hits hidden weapons caches that subsequently explode and cause a lot of secondary damage [4].
[1] https://www.newsweek.com/finland-estonia-gps-jamming-russia-...
[2] https://www.reuters.com/world/middle-east/israeli-attack-raf...
[3] https://www.lemonde.fr/en/international/article/2024/05/31/i...
[4] https://www.pbs.org/newshour/show/military-experts-discuss-i...