Ibuprofen is often not advised during pregnancy unless a doctor prescribes it, especially if you are more than 30 weeks along. Ibuprofen's potential to harm your baby's kidneys and circulation is the reason for this. Ibuprofen during the first trimester of pregnancy may also increase the risk of miscarriage.