PWM amplifier 9v or 12v

I always think it is best if you amplify the PWM with a single transistor with the collector load to 9V. Then, only if you need to smooth it.
http://www.thebox.myzen.co.uk/Tutorial/PWM.html