It is not advised to take Midol while pregnant from 20 weeks to birth. If for some reason your doctor instructs you to take this medication between 20 and 30 weeks of pregnancy, you should take the lowest dose for the shortest time possible. And you should not use this drug after 30 weeks of pregnancy.