Banning users?

Does banning a user also prevent anonymous posts/comments from them?