The answer is no. Magnets also attract two other ferromagnetic metals : nickel and cobalt.

Magnetic field of electrons.

The reason is that the electrons of these metals, like those in iron, have a special configuration around their nucleus which allows them to all orient themselves in the same direction when they are subjected to an external magnetic field.

The electrons are themselves kind of small magnets, by their rotational movements around the nucleus of the atom and by their rotation on themselves (spin), they produce magnetic fields. In the presence of a magnet creating an external magnetic field, electrons in ferromagnetic metals have the special property to align. It is this alignment that causes the fields of each electron to add up and produces a global field strong enough to react with and to be attracted by the
magnetic field of a magnet.

Basically, in ferromagnetic materials, the magnet has the particularity of orienting all the magnetics domains in the same axis, while without another material the magnetic domains are anarchic and do not react to the magnet.

uanqlef.jpg