No, BM's children disproved that theory. Maybe you're a tad more likely to get it if one of your parents has it because you can inherit their willpower, but it's not fundamentally genetic. If it were, that would defeat the whole point of haki, which is supposed to be purely a spiritual power.