It's “fine” in the sense that it's not a warcrime, but thankfully that's not the only possible moral standard that applies. The concept of a conscientious objector is very much rooted in the concept that it is not fine to kill, even if it's “just” a soldier.