We don't recommend do it.
Because when you opening case, the bearings will break away from the bearing house, it will affect the motor rotor's concentricity.
If you want replace the cable with a longer one, you’d better extend from outside of the motor.