Rape?

last night i was having sex with my boyfriend and he asked me to have anal but i didn’t want to so i said no and he dropped it. after a bit we switched positions into doggy and he put it in my ass and i don’t know if he didn’t realize that he put it in the wrong hole or what but i told him to stop and he did. would this be considered rape?