No, Wilhelm was never the Emperor of Germany. He was the son of the first German Emperor, Wilhelm I, and was the heir to the throne. However, Wilhelm I died in 1888 and Wilhelm II became the Emperor. Wilhelm II was deposed in 1918 and the German monarchy was abolished.
Warrior Prince: Unveiling the Legacy of Wilhelm, German Crown Prince