Having sex the day after your period ends

So I ended my period yesterday (the spotting) and then today I had sex , is it still a possibility to get pregnant even if I just ended my period ?