One of the great difficulties we often have is making a clear distinction between people and the ideas that they espouse. While one might reject an idea, we may not reject the person who espouses it. This is true even of ideas that we find offensive or heretical.
We tend to divide the Bible into narrative and law. The former teaches ethical and moral values while the latter instructs us on how we must conduct our life on a day-to-day basis. Yet it would be a mistake to see these as two separate realms. The stories, many concentrated in Sefer Breisheet, often serve as the background to the law as later promulgated in the Torah. Perhaps the most obvious example is Yaakov's struggle with the angel, which serves as the source for the prohibition against eating the sciatic nerve. Examples of this phenomenon abound.