The decision by CVS comes on the heels of several recent deals bolstering the company’s position in the healthcare market.