Yes to fitting; all compact-size frames (G19, 23 & 32) are literally the same, but the innards are not.
As for proper function and safety no, because of the different innards of the frame. Such as the ejector. A 9mm ejector is way different than a .40S&W/.357SIG ejector. and will not function properly.
Just go buy yourself a G32.
God bless and be safe.