Yes — if you mean Age of Empires III, which supports online play through the ESO (Ensemble Studios Online) service under the multiplayer menu.
ESO was the original matchmaking system, and it still works for the classic titles with a little patience, though the player base is naturally much smaller than it was. You can host or join games directly by IP as well, which is often more reliable than public matchmaking.
For the first two Age of Empires games, online support is patchier and usually depends on community-run servers or services like a virtual LAN. The Definitive Edition releases, if you have access to them, are the simplest way to get all three titles online today.