Yes—but only in a dedicated mode. To play as one of the "Infected" (the zombies) in Left 4 Dead 2, you need to jump into Versus mode. There, human players take turns on each side, switching between the Survivors and the Infected as they battle against one another.