Stop in for a cup of coffee

So, does putting ant bait out, when you see them in the house, stop Ants, or just attract more of them that you would not have had otherwise?
If we are actually talking ants, then I used to have to at my old house. A liquid went on card board. They would gather around and take it back. All gone in a day or so