Yes, it is safe to use a Magic Eraser on your carpet. Just make sure to wet it first and gently scrub the stain, without rubbing too hard. Blot the area with water afterwards. Spot-test beforehand to ensure no damage is done.