Class question??

Hey so this is for a class but I was wondering, if someone asked you if it was okay for them to "put it" in there (have anal) and you said no, but they did it anyways, is that considered rape????