Not sure if it was rape

Autumn • I want to be a sniper • I hate my period •
So when I was around 4 we would always go to my grandmas house for holidays and all my cousins were there too. Me and my cousins always finished eating before the adults so we went into the living room to watch tv. Soon all of my cousins would go back out to their parents but one always stayed. I wanted to play "doctor" every time so we did but his idea of doctor was different. He would have me lay down and he would stick his hand down my pants and rub my clit and stick his whole hand in my vagina. I didn't know this was wrong. I let him do it because it felt good. One day he was over at my house (I was probably about 7) he was doing it to me again when my dad walked in. He told him to get the fu*k out. I ran to our backyard and screamed and cried because I thought I was going to jail. The police were called, and at the time I was deathly afraid of police. He ended up going to court but now I'm really close to him and he won't do that again. But my parents ended up getting divorced a couple weeks after that. So is this rape?