Pumping/breastfeeding

I know breastfeeding doesn’t always make you lose weight, but if I pump will I still lose the weight as if I’m breastfeeding?