Pumping

Does pumping make you lose weight even though you are pumping? Because I heard breastfeeding makes you lose weight.