tri sprintec?

is it good at preventing pregnancy? i had unprotected sex ab 2 weeks ago(he pulled out) i’m just scared bc my boobs hurt now and my emotions are very weird but i’m supposed to start my period in eight days so idk, what do y’all think?