It may well have been molded and shipped straight. What can cause it to shift? It's polymer - take the slide off and you can see how it's easily moved up and down. Fiberglass filled nylon is not rigid, and it will bend. Can it take a set if constantly pressured one way or another? Some claim it's impossible, however, it's glass filled nylon, not plastisteel composite. Two examples of note, when makers started molding pickup tool boxes from it, within months you could find them getting propped up in the middle with a concrete block to keep them from sagging under the weight. Owners report they could take them off and leave them empty in the driveway, they would take weeks of sitting in the hot august sun on concrete and wouldn't straighten out completely.
Next example, the Spyderco knives of the 90's, where even the clip was integrally molded. You can't buy those anymore, they changed to metal liners and steel clips. Why? Because, like mine, shoving them into a tight jeans pocket made the liners collapse onto the blade holding it in place with extra friction which made it doubly difficult to deploy. That is is the knife stayed in the pocket, as the clip would bow out and lose tension, causing the knife to drift up and fall out.
Polymer will bend and take a set. Holsters are the first and foremost cause of the dust covers bending and moving out of place, and yes, it would cause a laser to shift over time requiring repeated sighting in. A rail would beef it up but the attached light in a closely fitted holster could cause it to shift and over time remain out of alignment.
You want light inexpensive molded parts you get the negatives, too. For long term duty use I would attach nothing to a poly rail. In the day many questioned adding one to the 1911, and the maker of the most popular also sold a metal rail S&W riveted onto the 3 Gen TSW models. People criticized it, too - but now we have even weaker mounts cast into the plastic frames. If you can grab the mount and see the change in point of aim then expect that over time it will.
Rails with lights also prevent having closely fitted trigger guards as the light unit has to pass thru them, too, when unholstered. That means you don't get the same retention and some other method has to be used. Your choice, but all the follow on problems then keep getting more changes and the additive result is that you could install laser grips and and a red dot using a standard holster, of which there are far more choices.
Food for thought.