Magnets and its effects on PC hard drives

Recently my small niece has been playing with my pc components. I am currently in the process of building my own rig and have all the piece of the new PC lying around. Yesterday, I saw my niece playing with a magnet over my hard disk. This piece has been salvaged from my old pc and has data on it. Will the magnet have any effect on the data on the disk?
