It certainly can. It depends on the module and what you have to adapt it to. I'm currently adapting the published adventures (currently, Tales From The Yawning Portal) to one of my homebrew settings that has no kobolds, orcs, hobgoblins, ogres or giants. That's a lot of creature substitution...