Pill and unprotected sex

Taylor

Ive been on the pill for about 1.5 years and I hear a lot of people saying they have unprotected sex and they don't get pregnant while on the pill, how does this work. I never asked my doctor because I never was as sexually active as I am now. Can anyone give me tips on anything relevant to my confusion.