This is called "situational ethics," and there is no room for it in God’s law. So, clearly, from God’s perspective there are no ends that justify the means of breaking His law.
Ito ay tinatawag na tuntunin ng moralidad ayon sa sitwasyon (situational ethics) at walang lugar ang ganitong pangangatwiran sa batas ng Diyos.