Related, but not identical. Metal Gear Solid 4 is the game you buy on disc, and Metal Gear Online comes bundled with it rather than being sold separately.
MGO is a substantial addition in its own right — a full multiplayer mode with its own maps, classes and progression, accessed from within MGS4 rather than as a standalone title.