Yes - in fact when I was young and more flexible I would masterbate with my body curled up and my penis pointing at me. I would stroke myself to the very edge of orgasm and ejaculation and then I would slightly and gently “open” the hole just a bit so at the moment of orgasm I could get the best view of my cum pouring and squirting out of me.