Period mean not pregnant

So I had protected sex along with withdrawal method. A week later I had my period. I started bc that week but then went off it for health reasons and a week later got another period prob from hormones from pill. To ease my mind I was protected and he pulled out plus I have had two periods close together. Does having my period mean not pregnant?