May not work

Had sex day after period ended but the condom broke... took the take action pill within 3 hours of this happening but scared it won't work since my period just ended.