Yes, a strong magnet might be able to extract a broken key from a lock cylinder.