Very good, sir. I'm glad it works for you. I have an old RR 4-6-2 that still has the original motor in it, too.
The thing about those motors is that, like the frames, they can just decide to "go" any time. Sometimes they go on and on seemingly forever. If you can make the decoder work with the original motor, then my only caution would be to pick up a spare motor when you find one, just in case.
FYI... I am currently doing some experiments with some cheap sources of better armatures and magnets that I hope I can just "drop in" to those old Rivarossi motors, so that they can be turned into something better and more stable, and still use the original can so they fit right back in without any frame cutting. Years ago, NWSL used to market a nicere 5-pole armature for them, and it did make them run better. But you were still stuck with that crazy rubberized ring magnet that can swell, flake apart, or lose its magnetism. It will be months before I get all the pieces together that I need and see if I can make it work.