Is it safe to have sex the day your period ends?

Maddy
My period ended this morning, and I'm probably going to end up having sex tonight. At the moment we just use condoms, but I'm pretty afraid of getting pregnant, so is it risky or am I okay to do it tonight? Thanks! xx