Pump while pregnant

I started leaking, I'm 30 w. Is it ok if I begin to pump an freeze it?