BV????

If I have bacteria vaginosis?? Can be for unprotected sex or it can happen in any way?