No...magnets remain magnetized because this is a property of how their atoms are oriented internal to the magnet and does not have anything to do with the earth's magnetic field.
All answers are provided by Dr. Sten Odenwald (Raytheon STX)
for the
NASA IMAGE/POETRY
Education and Public Outreach program.