Yes that should work, but you may have to shorten your feeding intervals at least for a while as your baby isn't getting a complete feed compared to what they're used to.
Going on the theory that the pump is less efficient than your baby, you could feed off one side, pump off the other then put your baby onto the side you just pumped from.