The 357 Sig barrel is a drop in for the .40. Nothing else must be changed.
You cannot and should not try to do so with the M&P9. The breechface is different and the slide is lighter in weight, which would cause excessive slide velocities if you could make it fit.