If you think about it for a moment, our genetic code is kind of designed to work that way.
You get half of your genetic code from your mom, the other half from your dad, and somehow, all of these genes "just work" together. It's kind of miraculous when you think that there are very many genes that encode how your brain works, and how your liver works, your muscles, etc. Somehow, provided the baby can be born, a mishmash of genes from two different individuals almost always works out.