Is this okay to do??

My baby likes to latch to my right boob so while he's latched and eating I pump the left side. Somebody just told me that you shouldn't do that because you won't produce from both sides at the same time. But my baby seems content and full with it.