Depression and bipolar disorder are both influenced by genetics. While mood disorders are hereditary, no one is immune to depression or bipolar disorder and it is possible to become ill even if there is no family history. It is also possible that a person with a family history of depression never becomes ill.