Vitamin c tablet inserted vaginally

I have heard to cure bv or a yeast infection that you can insert a vitamin c pill vaginally a couple nights and it cures it. Can you do this while pregnant? Has anyone heard of this?