No, pregnancy tests are based on antibodies the body has developed in response to hormonal cycles; these would not be affected by this class of drugs.
Although you got your answer I think you should try alternative ways to cure yourself instead of taking medications. you know, the knowledge scientists have today can change tomorrow. I recommend on natural and non-medic treatments.