Is it Rape?

Here I am, sitting down thinking about something that happened to me almost two years ago. I was with someone and I can remember an instance where before I went to his place I told him I didn’t want sex. When I got there, he’d either touch and fondle and kiss me or he kept asking for it, and I turned him down until I eventually. Sometimes I gave my safe word (it was a BDSM relationship) and I would honestly change my mind, but there were times I got pressured to have sex. I remember another time where I got in trouble with him and he punished me (again, BDSM). I cried and cried and whimpered. Part of the punishment was him having sex with me and that I couldn’t orgasm. I didn’t want to, but I did it because I wasn’t tryna get my ass beat again. During the sex, the condom popped. Afraid of getting pregnant, I backed up from him and he was like “you running from me?” I said no and he pulled me back to him, put on another condom, continued fucking me.

With that being said, is it rape? Or am I just to blame for entering a potentially abusive at 18 with a 27 year old man?