sex with condom

i want to have sex with my boyfriend, and i want to try my hardest to prevent pregnancy. how effective are condoms and how do you know if there is cum inside you after sex?