Help me!

My period ended this Saturday. And yesterday was my last day of spotting, I just had unprotected sex twice and the second one he came inside of me. What should I do? I think I can't take the pill because I just took it like 4 months ago, I don't know what to do, help me please