yes but ants are insects, not mammals. Insects have crazy amounts of children and their birthing patterns don't probably don't translate well to learning by example as the parent doesn't have time to teach all the children. I think the innateness is a more likely cause.
Actually the founder of the field sociobiology (or at least the main popularizer) is EO Wilson. He studies ants, and since he effectively founded the field, many scientists who study mammals actually studied under him since there wasn't an established place for sociobiology then.
Of course intelligence and sociology/social behavior are different; however, they virtually always have overlaps if any complex intelligence is to occur. It's because you need intergenerational culture to exist in order to build up such knowledge.
EO Wilson and others have proven such intergenerational knowledge transfer exists in ants.
Intelligence doesn't need to occur at an individual level. The hive can be intelligent through emergent properties and can also maintain state that acts like memory for learned experiences.
I said this because in the parent comment, he said "anything other than primates". I agree it is different for insects and as far as we know they do not seem to learn from others.