All handgun magazines are not universal. There are differences in dimensions and design among different makes and models of handguns. As a result, not all handgun magazines will fit or work in all handguns.
For example, Colt .45 caliber magazines will not fit nor work in Glock 9mm handguns, and vice versa.
However, some brands like Smith & Wesson make both .45 caliber and 9mm magazines that are designed to fit and work in their respective model handguns. So it depends on the specific make and model of handgun you have.
It’s always best to consult your gun’s owner’s manual or the manufacturer to find out what type and size of the magazine are recommended for your particular handgun.