I do not think at all that the end always justifies the means. Often this statement is incorrect from a moral point of view. A man cannot achieve a noble goal by betraying and deceiving people, because he only multiplies evil and hatred in this world, that is, he goes against his will. However, this pattern is not always true, as we will see by turning to literary examples.
In Dostoevsky’s novel Crime and Punishment, the heroine proves by her example that saving relatives is a shame, that is, a noble end justifies low means. When the stepmother and her young children were dying of hunger and poverty, Sonia Marmeladova saved them by selling her body. She brought them 30 rubles, like 30 silver coins who paid Judas for the betrayal of Christ. So she betrays herself in the name of something more, suffers for all of humanity. This sacrifice is a great social tragedy in which fate drives the poor and unsettled people. Under these conditions, saving lives depends on whether a person can sacrifice the most precious for the benefit of others. Whether Sonya’s act is legitimate is an open question, but I think she’s right, because in the pursuit of what she wanted, she only hurt herself, and helped others. She has the right to control herself, especially when family life depends on her decision. Unlike Rodion, the heroine went to a good goal, stepping over herself and not through others, so her means are fully justified.
In Gorky's story “The Old Woman Izergil”, Larra tried to achieve the love of the daughter of the leader of the tribe. However, not having received it, he furiously kills the beauty, and does not continue to make timid attempts to please her, as any of us would have done. In achieving the goal, the hero did not bother to choose the means and simply acted as he wanted. Stubbornness and selfishness prevented him from achieving what he wanted, so Larra did not become happy and recognized. Representatives of the tribe expelled the killer, and God “awarded” him immortality, so that the hero could feel all the pangs of loneliness, since he did not want to live with people. Obviously, the wrong means will not lead to the goal.
Thus, sacrificing on the way to the goal is possible only by oneself, and not by other people, only then the highest goal can justify a radical means. However, one cannot go over one’s head for one’s own gain or even good mission, in this case the result will be far from what the person originally wanted.