No, he didn't. Zom confronted Doctor Strange before Shuma-Gorath was even written into the Marvel Universe and the entire point of the Shuma-Gorath story arc was for Strange to encounter a foe greater than the likes of which he had ever seen before.
People get this idea that Zom is so powerful because the Living Tribunal appeared to banish him because of the sense of evil on Earth, but he banished Zom with ease and Zom cowered in fear at the site of him. It is also known that Zom was previously defeated by Dormammu and Umar, who are weaker than Shuma-Gorath by a great deal. After Doctor Strange had proved himself to the Living Tribunal, LT had no need to return to Earth to deal with evil. Also, Shuma never had a real foothold on Earth again after Sise-Neg banished him.
Just based on feats and comic descriptions, Shuma-Gorath is greater than Zom.
Zom recognized Umar as being involved in his previous defeat and tried to attack him. The fact that Dormammu was even able to put the Chains of Living Bondage on Zom proves how overrated he is. He has shown nothing to indicate that he is near as powerful as people make him out to be.
Not to mention Zom's character design is probably the worst in Marvel history.
That's because Shuma-Gorath is a chaos lord and is part of the balance between chaos and order in the marvel universe. Zom was a creation and was therefore an unnatural part of the balance.
Based on feats and what has been shown of each character it is idiotic to assume Zom is more powerful than Shuma.
Dormammu put Zom in bonds AFTER him AND Eternity put him down. Eternity who strange said was the strongest magical entity ever (and this was after he met Shuma). Zom even said that Eternity himself was not capable of stopping him.