The statement is True.
Density is a property of a material that does not change based on the object's shape or state, provided they are both made of the same material. Since both the pure iron anchor and the pure iron magnet are made of pure iron, they will have the same density.