Sex on last day of period

is it safe to have sex on the last day of your period without getting pregnant.