I’m confused...

So I had sex with my boyfriend and he finished in me but today was the last day of my cycle but there was no blood all day. Once he finished a few minutes later I went to the bathroom and I peed but it looked like blobs of blood came out. I need help understanding.....