Probably not.
https://en.wikipedia.org/wiki/Origen#Alleged_self-castration
Origen himself didn't take Matthew 18:8-9 literally