> if they had genealogy records to keep track of that stuff.
absolutely
Korea has kept genealogical records since the Chosun dynasty (1392-1910) to prevent inbreeding
still practiced to this day.
if you get married in Korea, the government ensures you are not within so many degrees of blood relation (3rd cousin if I can recall correctly)