Can I take painkillers for pregnancy headache? by Specialist Most other headache medications, such as aspirin, ibuprofen and most prescription drugs for migraine (Class C/D), are not recommended for pregnant women and the diagnosis should first be clarified.