Answer
Yes, Richard Sorge did work undercover, notably as a German journalist posing as a foreign correspondent in Japan during World War II. This provided him with a cover for his espionage activities on behalf of the Soviet Union, enabling him to obtain and transmit valuable political and military intelligence to Moscow.