Pill after contact

Hi! I am on my 4th day after mens and had intercourse. Now glow app indicates that its my ovulation week. Now I am wondering if taking pills an hour after contact will work? Its my first time by the way, and its a local brand pills. Thnak you!