I'm so confused

I had unprotected sex on the 4th of August my boyfriend came inside of me full blown lol! The next day around 8 at night I took a take action morning after pill. Well I had cramping three days later but no bleeding then on the 6th day i went to go pee in the morning and had red spotting but just on the toilet paper when I wiped after that I had only creamy discharge the next day I had sex again and it went on up until this morning lol I'd say we started at 11:30 pm then took a break then again at 12:00 am then again at 1:00 am and this morning when I woke up to pee again I had brown discharge only again on the toilet paper after that I haven't anything else. My period was due on the 10th of August is what my fertility app said but i had it on the 15th last month. Does this mean maybe the morning after pill failed? If it did I wouldn't mind. Has this happened to anyone else???