It’s interesting, in pre-3e D&D, the modules always, always, always broke the rules of D&D. Even (and sometimes especially!) the organized play modules.  In 3e and 4e,, this decreased somewhat – there was enough of a “show your work” to the stats that they tended to cleave a lot closer to the rules.  I haven’t seen enough 5e stuff to be able to say one way or the other.