Breastfeeding and pumping

Can you breastfeed on one side and pump on the other exclusively?