Is walking out from a toxic relationship the solution?

I am me; you are you; I can exploit you and be a bigger me, that’s exploitation. I walk out, and why did I walk out? To take care of my personal peace. Am I still not the one who was thinking previously in the language of division? So, this walking out then will not be very beneficial. Therefore, one has to take quitting or walking out just as a temporary thing, right?