Unprotected sex

How long does sperm live to get you pregnant ? . I had unprotected sex and my bf cum in me.