Can you hate Japan but love anime?
Not likely. Anime, especially those made in Japan, tend to focus a lot on Japanese culture and their ways of life. So you are constantly remedied that it is Japanese just by their actions and customs presented in their cartoons.
There are some Japanese anime that don't focus on their culture, and there are some anime that aren't made in Japan. But overall, I think you have to love, or at least accept, Japan and its culture in order to really love anime.