So, a moral code has nothing to do with what is good for a human being. If a moral code is based on the nature of man, the requirements of human nature for happiness and success in this world, and the principles that must be followed to fulfill those requirements, that is without basis.
But a moral code that comes from the Koran (or anyone else's book) and teaches that women must be covered from head to toe, else beaten or killed, that is a moral code with a basis.
... moral code is always changeable depending on who is doing the deciding ...
Moral principles are not "decided" any more than the princple of chemistry are decided, they are discovered. They are determined by the nature of those beings to whom moral values pertain, rational/volitional beings, and the nature of the world in which they live.
It is religious moral values that change, because they are arbitrary, having no rational basis and dependent on the nothing but the whim of a deity, who can yesterday demand obedience to a levitical law, for example, but today condemnd that same practice as defying grace.
Hank
By that logic, Rand is wrong, based on the evidence.