Yes, websites can ban your IP, preventing you from reaching its server. This is a blocking measure the website uses to protect its resources and users from unwanted visitors or abnormal activity. The abnormal activity could be excessive downloads from a webpage or unwanted visitors from a particular location, for instance. But most times, you might not have done anything nasty for this to happen.