In the sense that the president couldn’t be prosecuted for giving the order, probably. I’m not 100% sure what he’d have been charged with before
But a lot of the discussion of this blurs the distinction between “can’t be prosecuted for making the order” and “can’t be prosecuted for carrying it out”