Confused and embarrassed

Not too long ago I went to a dance and was drinking and smoking. Later that night I went to see my boyfriend, I was a virgin and he wasn’t, he wanted to have sex but I wasn’t sure if I was ready and I clearly wasn’t in the right state of mind. He somehow ended up convincing me and when he started I told him to stop because it hurt, only he didn’t and kept going...now I’ve given it some thought and I’m not sure if I was raped or not because I did say yes at first but then I didn’t want it, a little while later I found out I was pregnant and had an std, I just turned 17 and I don’t know what to do. Was I raped ?