Pharmacist gave me a different pill

So I started the pill on December the name of the pill I was taking was Vienva today I finished my second pack of it and when to get a refill and the pharmacist gave me Sronyx because they were out of Vienva and said it’s basically the same. Has anyone tried this pill? How did it work for you? Side effects? Pregnancy? Do I have to have sex with a condom for the next 7 days or is it effective right away?