Period and sex

OK so I had sex the same day I got my period like I had sex at 230am and then later that day when I woke up I got my period ...can you get pregnant or not?