Get Quake 2
You don’t need to purchase Quake 2 to play it online. You just need the starter and mods loaded to play. This is the preferred method to get started.
You can, of course, always purchase Quake 2.
If you use the Quake 2 Starter, you can play online, but you will be missing some textures, but the game is still playable.