In the Bible, ethics are paramount. Everything reflects, in some way or another, the importance of ethics.
In the book of Genesis, Adam and Eve disobeyed God’s direct ethical command to stay away from his tree. In the story of Noah and the flood, all of humanity, except Noah and his family, were not ethically suitable, so they were destroyed. In the Psalms, David asks God to destroy evil-doers (those who are not ethically sound) and to deliver good people (those who are ethically sound). In the Proverbs, the deeds of the ethically wicked will always come back to bite them.
The Bible takes a consistent view when it comes to ethics: the good guys will always win and the bad guys will always lose.