Breast pump?

Tin
When should I buy breast pump? Before or after I give birth?