Sure. However, be aware that in the event of a "national emergency" (whether real or the result of bad military personnel management) you will very likely be moved to serve as a physician.
Back before Desert Storm, there was an orthopedic surgeon who was a pilot and the Deputy Commander for Operations of a reserve air refueling wing. He was known to boast that he "out-smarted" HQ AF and as a senior staff member of an operational wing, the SG could not touch him. Nope. When things kicked off, he was quickly reassigned despite his protests to a medical position.
Physicians are considered the most valuable asset in the military, even more so than pilots. (Although the Pentagon rarely acts that way until things become desperate.) So although the situation I describe above is different because the guy was an orthopedic surgeon in the "real world", do not be surprised if you quickly end up back in the medical world.