Not at all. Static magnetic fields have no effect on the Pi. Some cases even use neodymium magnets for closures instead of screws or snaps. And frankly, you'd have to be doing something pretty freaky ...