Yup

The main function of the filter is to provide the nitrifying bacteria in the tank - this is called biological filtration (along with mechanical and chemical filtration ... well, chemical if you use chemical media). Various filter media provide lots of space where these beneficial bacteria grow and live, and convert your ammonia into
nitrite, and then nitrite into
nitrate. The bacteria "remove" ammonia and nitrite, and nitrate needs to be removed by regular weekly (or so) water changes. On the label of my Aquarium Pharmaceuticals Nitrate test, it says that nitrate should not go above 40
PPM, so this could be considered a "safety zone". But, in my opinion, a nitrate level of 40 ppm is way too high. I'd personally not go over 20 ppm - that would be the "safety zone" for me.