In deed it is possible for some species to keep them together but you can not do this with all species.
If there is room and food enough there should be no problem.
They lay eggs if there is enough food. The ants don't know there in captivity so there is plenty of food, so the queen only lays eggs when she is sure there is enough food for the new (and old) workers. If you understand.






They have a huge pile now, i'm waiting for atleast 200% growth to the colony this year!