By strict dictionary definition, "cartoon" includes any animation, technically encompassing anime.
Common usage treats "cartoon" and "anime" as distinct categories with different aesthetic conventions and audience ranges.
By the strict dictionary definition of animation, yes — but most people asking this question are really debating cultural and stylistic distinctions, not the technical definition.
The distinction usually reflects real differences in visual language, genre range, and audience targeting between Japanese anime traditions and Western animation conventions, rather than being purely semantic.