Yes, neodymium magnets are sensitive to temperature. The heat will demagnetize the magnet.