The end justifies the means. meaning

HOME PROVERBS

result

The end justifies the means.

suggests that:
Wrong or unfair or illegal methods may be used if the result of an action is good.