I want to go through 4 years of undergraduate school, while do NROTC and become a Naval Pilot. For my graduate studies, I want to go to Medical School. Will the Navy pay for Medical School, and if I go, will I have to become a Naval Doctor rather than pilot?

I really want to fly anything from jets, props, and helicopters, but when I retire from the military I want to have a good paying job as a Orthopedic Surgeon, which does require many years of studying. Will I be go into the Naval Reserves while being in medical school, then residency?