Yes, magnets can affect ants, potentially impacting their brain structure and navigation.
Specifically, exposure to disturbed magnetic fields has been shown to negatively influence the development of mushroom bodies in ant brains. Mushroom bodies are crucial brain regions involved in learning, memory, and navigation. When ants are subjected to altered magnetic environments, their mushroom bodies can be smaller and have fewer connections between neurons compared to ants in normal magnetic conditions.
This suggests that magnetic fields play a role in ant neurobiology and behavior. While more research is needed to fully understand the extent of this influence, the existing evidence indicates that magnets can indeed have a biological impact on ants.