My period last for about 10days

Can i ask something? For those who are interested and willing to answer my question only. After 10days of having my period, can i have an intercourse with my bf? Is this a safe? Because they said after your period is a safe time of having intercourse. (By the way i'm using pill) and my fertility window is active because its my 10th day.