Ibuprofen while pregnant?

Is ibuprofen safe to take in pregnancy?