Yes. Battle.net is Blizzard Entertainment's official online service, and it underpins World of Warcraft, Warcraft II: Battle.net Edition, Warcraft III, Diablo and Diablo II, StarCraft and StarCraft II.
It handles matchmaking, chat and a cross-game friends list. For most modern Blizzard titles it isn't optional — World of Warcraft and StarCraft II both require it to play online.