Its true, but keeping ants in your home is not a very good way to keep the termites away.
Our friendly pest control operator suggested that when I see ants, I set out this inexpensive bait station. Its basically liquid borax (old-school stuff). They sell it at most stores and if you buy it on line you’ll get it delivered to you.
The ants are attracted to it for some reason, and take it back to the hive. The process isn’t instant, but it has proven to be pretty effective for us through the years, and we’re not spreading poisons around our home.