Well here's your answer. Yeah. I've done it more than once. Getting a new motor is not as simple as removing the old and slapping on the new. Do you realize that?
You would most likely want to put your dish at it's lowest position where the lower limit switch trips.
Then compare the replacement and verify that the switches in it are adjusted the same.
Hopefully it would come with an instruction sheet showing you how to adjust both lower and upper limits.
Set them identically to the old motor. It might even be a situation where you would need to drive the motor/gearbox to it's lower limit manually.
A 12 volt battery, car battery charger, even a cordless power tool battery with wires hooked to it can be used to run it.
Hook it up so that it turns in the right direction until the lower limit switch trips and it shuts off.
The rest.....you've already gotten your feet wet doing that.
...me and my