Yes, because Snape always took away points from his house (Gryffindor), he insulted Harry, he gave him bad grades, and a few more. However, Snape wasn't so BAD, either. He protected Harry for years and sacrificed himself in the end; he mistreated Harry because he loathed his father, but he also loved Harry because he loved his mother.