Yes as others said, the motors just have an anti-rotation limit, not a hard fixed mount. Makes it all a bit self-aligning with the shaft.
However, keep an eye on it, because that gearmotor is likely just plastic and the OEM version often ends up breaking. That lets the gearmotor over rotate, which at best jams the rotation, and at worst rips wiring loose. I have replaced mine with an all aluminum body gearmotor which is readily available.
2006 F250 Diesel
2011 Keystone Cougar 278RKSWE Fiver