I had sex and we didn’t realize the condom came off so I took Plan B . I was freaked out so I washed myself with scented soap which caused a yeast infection and two days later I took a metronidazole pill I had from a while ago.
Answers (2)
Metronidazole is actually an antibiotic that fights bacteria and not a yeast infection. So it probably won't have any impact on your yeast infection and most probably also not on a potential pregnancy.
Plan B will potentially work to prevent pregnancy. You should think about other more reliable birth control such as an IUD, you can talk to your doctor or go to a family planning center.
If you are pregnant, you got that way even before you figured out that the condom broke. The process is pretty well studied and it is very easy to get information. You really ought to stop living in a cloud and learn a few things about life so you don't go around asking stupid questions like this one.