No, that part is in the law about the armed forces. And I remember distinctly from my compulsory service that we got extensive lectures about the legality of orders and when to disregard them (and report further up the chain of command), with examples.