Yes, but the antэы brain is very small. It’s so small that it would be hard to call it a “brain” by human standards. However, it’s still a brain, just a very simple one. The ant’s brain is made of a few hundred thousand neurons.