Does a human have the ability to opt out of orders if the punishment for opting out is death?
There are also many examples of people being exonerated for horrible deeds because they were "just following orders".
It's the same thing as if an officer during war told you to retreat, however you still defy that order to rescue a fallen comrade in the presence of immediate danger.