Breastfeeding or Pumping

Is it ok to breastfeed some moments and pump other times, What about constantly pumping?