Is this rape?

A year ago I was dating this guy and we had sex then I fell asleep naked in his bed. Later I woke up to him on top of me having sex with me. I told him to get off and he did. But is it rape because I didn’t consent?