Really need dedicated IP?

Hello guys, when I start new website, I always buy dedicated ip for my shared hosting, because I don't want to share my ip with other 5-6-7-800 website in the server. But today I ask you,
is it really necessary? If google find 20-30 spam website in hosting IP range, will ban all websites connected to it?