We tried and hanged people at Nuremberg for following illegitimate orders.
The UCMJ forbids us from following orders which are “improper,” or from an illegitimate source.