Would the pill have worked properly

So I was on the pill 2 years and due to lockdown I couldn’t get a hold of it until about 2 weeks ago so I didn’t take it for about 3 months. However a few weeks ago I started taking it again and began having sex 3 days ago. Will I still be protected even if I took a break from it