BV and pregnant

I just got diagnosed with BV and they gave my Flagyl for antibiotics... I read online it can cause birth defects! Is that true? I'm so worried