What kind of words do you mean?
There are words that no one in polite Japanese society would use that do appear in Anime (お前 comes to mind).
I can speak for お前 because I went to Japan for work and had interesting conversations with the people I work with. We talked about Anime and they asked… “you use words like お前 when you speak in Japanese?”
Other than the fact that I can barely speak Japanese, I also learned early to be polite which unless you are in super comfortable situations with folks or are really trying to be mean, お前 simply wouldn’t be used.
And while not word specific, Japanese Man Yuta had this interesting (to me) video about Anime vs Real Life Japanese.