A military officer should disobey an order that he finds outrageously immoral or illegal. But then that officer must immediately resign. After which speak out as a private citizen.
To disobey an order and just sit in your office is dishonorable. No, it’s more than just that. It’s dishonorable and repugnant.
And,”Some call it treason”.