That only gives you the client component though, which isn't very useful when the game servers shut down.
Most games these days don't have a self-hostable dedicated server.
In case of Steam/Valve specifically it happened a while ago with Counter-Strike: Global Offensive. Valve replaced it with Counter-Strike 2, and while GO's client is still usable, some of its online components are not.