Can he cum inside me lol

So Ive never used anything except for condoms... I'm deciding to go for an IUD because it's more effective I don't want kids at the moment I still think being 20 is young lol but there are those occasions where women still get pregnant while having it and I hear women bleed for 6 months straight ..not trying to go through that lol ...I just don't wanna keep giving my boyfriend blue balls lol , so like will I risk my chances of getting pregnant if he ejaculates inside me while taking the pill?

or does it all depend if I take the pill correctly ? I know I sound stupid I'm not good with this 😩bare with me 😭