The primary human problem that Paul notes in Romans 1:18 is not “sin,” but “ungodliness.” It is a failure not primarily of behavior (though that follows), but of worship. Worship the wrong divinity, and instead of reflecting God’s wise order into the world you will reflect and then produce a distortion: something out of joint, something “unjust.”