Questions ants

Are they one and the same thing? Recently found little groups within our house. Never had them before. Could they have come in with a plant (Candytuft)which I had recently bought? The plant is sitting on the outside path now!