Technically there is the risk of getting pregnant at any time during your cycle. But higher chances are around ovulation...which wouldn't occur when on the end of your cycle (well in most cycles anyway). Plus the fact you would use a condom, which again lower chances of getting pregnant.
there are very few chances of getting pregnant when on u are on ur periods.