Is exposing yourself to emotional pain a form of self harm?

is it possible that spending time with toxic people who insult you is a form of emotional self harm.

Is exposing yourself to emotional pain a form of self harm?
Post Opinion