is it possible to get pregnant having sex one day after period finishes

So my period ended and I had sex with a friends with benefits it wasn't really planned and I thought he wouldn't cum in me so I kinda just is it possibly one day after your period finishes can you get pregnant