Birth control

I recently was put on Sronyx the pill for having heavy periods, is anyone els on this? And it does prevent pregnancy correct? Cause Iv been hearing different things about