Yes, Greenberg served in the military. He enlisted in the United States Marine Corps in 1942, and was stationed on Guadalcanal. He then trained for espionage and sabotage missions in the Office of Strategic Services (OSS) during World War II.
The Linguistic Odyssey: Unveiling Joseph Greenberg's Language Discoveries