D&D ruleset only affects combat and how you interact with the world, which rarely affects lore and RP; but could make RP easier allowing free space to RP and interact with the world and many other things. The devs of 5e stated that the latter was one of their objectives.

And by that I use the definition of D&D as the "fantasy tabletop game system"
Usually, the worlds where you played, like The Forgotten realms, Eberron, Ravnika, Wyldemount, Greyhawk, etc are referred as "settings", (because you use the D&D ruleset for all those worlds and many more that are based in D&D SRD like Star wars5e, Witcher 5e, etc)
Maybe it´s a misunderstanding about the meaning of the term D&D applied to videogames and you meant what other people call "Forgotten realms" setting to be applied to a videogame (I.e a game taking place in Baldurs gate, Neverwinter, Icewind dale with iconic characters and places of the world)?