New pill/sex


I am on generic yaz and the pharmacy was out of the specific generic I took so I got a different yaz generic with the same active ingredients and dosing and the only think different is the name. My questions is do you have to be careful with unprotected sex when switching pills like this even though nothing dosage or ingredient wise is changing or is that just when you switch to a pill with different dosage/ingredients?