Breastfeeding and pumping questions

Is it okay to pump every hour and breastfeed every 2hours? Is that okay for your health?