At the moment, it seems that the vast majority of people carve out a special ethical exception for the military but I suspect this will change over time. Many futurist/sci-fi dystopian scenarios have the general shape of the Terminator movies with autonomous killing machines roaming the planet. If these proliferate, perhaps the terror of that reality will bring into focus the immorality of using force to achieve geopolitical goals. And it feels like we're getting uncomfortably close to that future.
https://twitter.com/DocBunker/status/1270390796978536450
https://www.ausa.org/publications/mission-command-and-armed-...