If it's a decent quality motor you'll be fine as long as it did not touch violently and you got the lid back on straight. If it makes noise try to turn the back. It usually fits 4 ways, and on really cheap motors it can make a difference.

If you take the rotor out of the housing not using the right procedure the magnets may be weakened. But then again this is not a firm rule.

It is however always a risk, so don't split a stepper or BLDC servo motor for no good reason.