Moons are held in place by gravity not magnetism, so there'd be no problems with having moons