Question!

I've been on the pill for about 5 months now. And I just finished my last pill of the month yesterday . But today I had sex without a condom but my SO didn't cum inside me. And I'm due for my period in 5 days. Am I safe? And is it still in my system, the pill I mean.