A Wi-Fi connection is a wireless way of connecting a device to the internet—or to a local network—without needing cables. In gaming, it's what lets you play online, download updates, and connect with other players over the air.
So yes, in the context of games, Wi-Fi is essentially how you get online to play without plugging in a physical connection.