bv sex??

So I had a bv and I was given a prescription for the gel insert. I had sex a couple times while using it, can it make things worse or am I safe? Also my period may be coming. It I seen spots of blood day or so after sex any options or connections on this?