Does having house plants contribute to having an ant problem?
MatchPatch
Generally no. Many people can have house plants and not have problems at all. But once ants find said house plant its a different story. They may leave it alone. Other times they will move a satellite nest into the planter and use it as a new home base.
Don't use soil from outside only potting soil so you don't accidentally dig up any ants or other pets and bring them into your home.
Put a dish with water under the plant so the ants cant get to it. It'll also act as a reservoir to keep the soil moist.
If the planter douse get ants you may need to "clean the pot and wash off the roots and try with new soil or use some pesticides.
Put just like the house itself the problem is if ants get into it. And move into it.
I've had ants build nests in indoor plants. I immerse the pot in water overnight. Goodbye ants.