The end justifies the means is never right. Only when death ends the present order will it truly be revealed how we have lived.
If you live a life looking out for number one, the end will simply explain that you have made a mess of things. If we live a moral life, the end will explain that we have lived morally. But only if we live in a personal relationship to God do we truly have the keys to living a moral life. Only then can He reveal His plan for our life and lead us through it.
Jer 29:11 For I know the plans I have for you, declares the Lord, plans for welfare and not for evil, to give you a future and a hope. ESV
In the Book of Revelation (the Apocalypse of the New Testament, as the Song of Solomon is the Apocalypse of the Old Testament), Jesus refers to Himself as the alpha and omega, the first and the last. It is in the middle that our human choices are made; the beginning and the end remain with God. He determines birth and death, and in between those limits we make our choices that determine how we live the life He has given us.
Eccl 7:8 Better is the end of a thing than its beginning, and the patient in spirit is better than the proud in spirit. ESV
That is why it is a life-long journey of spiritual development that determines how far we have come at the end. How much of the Life of Christ that we have been given has been revealed in our life … between the beginning and the end.
Rom 8:29 For those whom he foreknew he also predestined to be conformed to the image of his Son, in order that he might be the firstborn among many brothers. ESV
It has a lot to do with our answer when Jesus asks us … “What did you do with what you were given?”