Yes, the ancients had a moral code even though they often violated it, and Abraham reasoned within that framework.
Watch the Teaching: Why Should a Wife Submit if Her Husband is Wrong?