Is it ok?

Is it ok to take Metronidazole (Flagyl) while pregnant. I had went to the ER and they told me I have BV. To take the pill every 12 hrs (twice a day) for 7 days. Is this going to harm my baby? I am 9 weeks pregnant.