Yes. I started using Anki for learning Chinese twelve years ago but gradually moved to using it for other stuff. About 60 % of my reviews (170k) are not vocabulary.
You can literally ankify (and therefore memorize) anything you want to remember: names of friends' children, algorithms, arguments from papers or articles, code, ...