Chances of you getting pregnant is low since you said it didn't actually got in. Just have yourself tested in a month or if your menstruation is delayed. Don't worry too much. Next time you guys have anal or any sex at all, make sure to use condom or any contraceptives.