I would first check your machine manufacturer or manual to find if there is any information on not having magnetic items around your machine.
I have been using a magnetic pincushion and a magnetic seam guide on mine for a number of years and have to date had no problems. I have used it with Brothers and Juki and Singer without a problem. It will be interesting to know what others have done or avoided.