Conversation so far:
What branch of the US armed forces was John McCain part of?
McCain began his early military career when he was commissioned as an ensign and started two and a half years of training at Pensacola to become a naval aviator.
Did being a in the Navy interest John McCain in politics?
CANNOTANSWER.
Who was John McCain's first wife?
At age 28 on July 3, 1965, McCain married Carol Shepp, who was a model from Philadelphia.
What assignment did John McCain have in the navy?
He completed flight school in 1960 and became a naval pilot of ground-attack aircraft.

Question: Did he serve in active duty?
Self-contained rewrite: Did John McCain serve in active duty as a naval pilot of ground-attack aircraft?