Depends on the individual actions of the soldier.\n\nFor example, if the soldier deliberately commits a war crime such as by torturing or executing an unarmed prisoner of war for no reason.\n\nBut defending ones-self when threatened is not a sin.