Yes, anime is legal only if you are watching it from any official source where it has been uploaded with the permission of the owner. If the anime watching site has no copyrights of the anime, watching it is totally illegal.