First time?

I think I just had sex for the first time and I don’t think I was ready, I said yes and it was kind of nice but I just feel sad and ashamed because I don’t know him that well. I don’t know what to do now and I didn’t think It was gonna happen.