Yes, elephants have demonstrated the ability to recognize themselves in a mirror, showing self-awareness similar to other highly intelligent animals like dolphins, great apes, and magpies. This ability is often tested through the mirror self-recognition test, where animals are marked with a visible mark and then observed to see if they use the mirror to investigate and touch the mark on their own bodies.