I agree with this email, but I guess it also depends on the breed like someone said above.
However, Samy would only ever bark at the door if strangers approach the hallway and if I tell him to stop, he stops, but I sometimes choose not to tell him.. I see he has fun with it also
I never hear him bark otherwise.. We taught him not to bark when he wants attention