I don’t know who needs to hear this, but “I was only following orders” was rejected as a defense at the Nuremberg Trials.
"Service members have a legal, enforceable duty to obey only lawful orders from those authorized to give orders (violating them is prosecutable by court-martial under Articles 90 and 92 of the Uniform Code of Military Justice), and a legal excuse (and moral grounds) for disobedience under the limited circumstances of receiving an unlawful order. The issue of presidential immunity for the commander in chief—whether absolute or presumed—is absolutely irrelevant to the underlying lawfulness of the order itself."
https://www.lawfaremedia.org/article/can-the-military-disobey-orders-in-the-seal-team-6-hypothetical