Breast pumps

So I’m hoping to be able to breastfeed my bubba when he’s here. Now this might be a silly question but do I buy the pump beforehand (they are expensive) or do I wait till baby is here and see if it actually happens then spend out and buy the pump?