No, 5.56/.223 is a 22 cal projectile so the bore of this comp is too tight for a 9mm round, it will thread on but when you fire it will destroy this device. You can bore it out if you're handy with a drill press or lathe...
I bought one similar with blast shield and it was for a AR15 5.56 and it screwed right on to my AR9 and I’ve shot it a few times with no problems so far.
The description states this is for .223REM/5.56mm and the other one is .30cal/7.62mm. Though the thread diameter and TPI (threads per inch) are the same you should contact the manufacturer concerning the exit opening of this compensator before installing and using it on a 9mm barrel. Safety first, safety always! Best of luck. You could also try a flash can to get the muzzle past the handguard. If recoil is a bit much try heavier ammo 124gr are softer shooting than 115gr and 147gr is softer yet. If your 9mm is an AR be sure to use a buffer for 9mm and I highly recommend a orange sprinco extra power buffer spring.