Do I need AdSense for an ads.txt?

I have signed up to be a game publisher with various platforms, and they all require that I add information to an ads.txt file. When I looked it up, all the articles mention Google AdSense. I don’t want any ads on my site other than those from the third-party game affiliates.

Can I add an ads.txt file to my root directory without AdSense?