The issue of what is a legal and what is an illegal order can be very vexed - but a soldier who pauses to consider is unlikely to find military life kind to him. Volunteers for the military make a choice to join, knowing that they may be required to do things that conscience would oppose.