Questions about the morning after pill

Patient: I had sex, the man ejaculated into me and I immediately took the morning after pill. About an hour later, we had sex again. Is the pill still effective for the second time I had sex, or do I need to take another one?