The Uniform Code of Military Justice (The U.S.'s rules pertaining to how soldiers are to act) states that, yes, any unlawful or immoral order, as defined by the Geneva Convention, can be disregarded. In fact it is your duty to disobey such an order. (UCMJ) 809[890].ART.90 (20)
And besides, who determines "immoral"?