Yes, magnets can lose their magnetism over time, although the rate at which this occurs can vary depending on the type of magnet and the conditions it is exposed to. Permanent magnets, such as those made from neodymium, can retain their magnetism for many years but are not immune to losing it eventually. Factors that can lead to a decrease in magnetism include elevated temperatures, physical damage, and exposure to other magnetic fields.
When a magnet is heated beyond its maximum operating temperature, known as the Curie temperature, the alignment of magnetic domains can be disrupted, leading to a loss of magnetism. Similarly, physical shock, such as dropping a magnet or striking it, can misalign these domains. Additionally, prolonged exposure to strong external magnetic fields can also have an adverse effect on a magnet's strength.
If you are looking for specific information regarding the longevity of different types of magnets, it might be helpful to refer to the product descriptions or specifications on the relevant pages of Magnets.com or similar sources.