I don’t believe so, because just the question itself, implies that the person is aware that the means will be wrong or hurtful. If the means were pure in spirit, no one would ever bother asking, does the end ever justify the means. As if it would be okay to do vile things as long as the end result is a good thing. How can you end up with a good result if on your way to that result the journey involves doing questionable acts?