No, pyrite is not magnetic, unlike some other iron sulfide minerals. This makes a magnetism test helpful for identification. Moving a strong magnet near pyrite will not produce any attraction. Magnetite and pyrrhotite are magnetic minerals sometimes confused with pyrite.