Yes, presuming the assembly is available. Like with other assemblies from the Parts-is-Parts era, sometimes it might require trying more than 1 assembly to find one that worked in any particular slide/frame combination (too loose isn't good, for example).
However, changing the manual safety assembly in a 3rd gen slide typically requires fitting a new sear release lever in the frame. This is to keep the decocking 'timing' within the factory spec, meaning the hammer not falling too soon, or too late, or not at all. Having the decocking timing be within the normal factory spec is a safety concern.
Fitting is done by checking the point of hammer fall, adjusted by filing on the bottom of the sear release lever leg (NOT the top), while maintaining the original factory angle of the bottom leg cut.
In earlier classes they taught armorers how to manipulate the lever and eye-ball the point of hammer fall. In subsequent classes they devised a way to use 3 different numbered metal drill bits - using the non-cutting shank end of the bits - as Go/No-Go gauges. They were placed in the bottom/rear corner of the machined recess under the L/S lever, as it was manipulated.
Fitting (filing) a replacement sear release lever requires a knowledge of disassembling the frame (at least to the point of removing the 2 levers on the right side of the hammers). Then, the tedious part can become making a file stroke, or 3, and then reassembling the frame, and installing the slide and inserting an EMPTY magazine, to check the decocking timing. It's really annoying and frustrating to get close to having filed the lever's foot
almost enough ... and then yield to the temptation of making that 'one more' file stroke ... and then discover you filed off too much, and have to start over with another sear release lever.

