Methimazole is classified as a pregnancy category D drug, indicating potential risk to the fetus. While it can be used during pregnancy, it should be prescribed with caution, especially during the first trimester. Alternative medications like propylthiouracil are often considered during early pregnancy.