The gene code was still pure in Cain's time; there would be no defects in children from marrying close to the bloodline like there would be today. The average person today has about 3,500 defective genes, making close kin marriages dangerous to the offspring. Adam married his own rib!