Sex problem

Can I get pregnant if my period is 9 days away when I had sex and now it’s 6 days away... btw I didn’t use protection and he pulled out too