You could, but do you really want a buzzer running constantly when the switch is in one of the positions? How about five or six buzzers all running?
FWIW, that article was showing a microprocessor generating a PWM audio signal to the speaker, for a simpler circuit, you'd need an actual sounder that generates sound just from a DC voltage. Of course, you still need the DC power as well.