Ibuprofen and breastfeeding

Is this ok to take still? They prescribed it to me post partum at the hospital.. I'm 18 days pp and I've been having pain with breastfeeding.