Even in the military, "I was just following orders," is not a defense for crimes committed. In the US military, you _must_ disobey orders if those orders are unlawful or a person of ordinary sense and understanding would know them to be unlawful. German soldiers had the same issue after WW2.