There's no additional charge to play online multiplayer games on PC. You will, however, need a wired or wireless internet connection to play online.
On PC, online gaming is often free because the infrastructure for online play is typically managed by the game developers or publishers, rather than a central platform provider.