Military aircraft in particular are exempt from many civil rules and regulations which would see most aircraft having an active transponder and of course their operational requirements will dictate they often do. That said, ultimately, any plane CAN disable it if they wish.