What to do to make sure to not get pregnant after sex?

My baby will only be 2 months on June 16. My husband and I just had sex yesterday and I'm really really worried that we might made a mistake since it's withdrawal. We're not ready to have another one.