In 1942, shortly after the U.S. entered World War II, McCarthy joined the United States Marine Corps, despite the fact that his judicial office exempted him from military service. His college education qualified him for a direct commission, and he entered the Marines as a first lieutenant.