Having safer sex is the best way to reduce the risk of an unplanned pregnancy or getting an STI, but sometimes the unexpected can happen.