Need some help

I got frisky with a friend a few days ago but we didn’t have sex- he never went in and I was on my periods. When he finished- it was outside me. But we grinded before and after that...

There’s no possibility of pregnancy, is there?