I doubt a magnet that small would cause any problems. I'm not sure about the new MacBooks Pros, but the old ones had an embedded magnet that I think was used to detect the screen closing.
That said, at least some of them have put the HDD in the back now, instead of near the front (don't know if it's all). It could be that the magnetic closing was part of the decision to move them.