Is it ok??

In my cycle, it is 4 days left before my period begins. Is it ok to have protected sex (condom) during the remaining days before my period? Any advice? Tips? Hahaha