Is depression passed down like a genetic condition?

Partly. There's an increased statistical risk of getting major depressive disorder (clinical depression) if close relatives have had it. But it's not a purely genetic trait like eye color. Genetics and life circumstances both affect the likelihood of depression. Regardless of genetics, there's a lot a person can do to avoid depression, or to treat it if it occurs.
Not entirely. There is a genetic component to a depression, but genetics doesn't determine completely if a person will be depressed or not. Depression is also influenced by our ability to handle stress, changes, rejections, our self-perceptions, our ability to relate to others, etc. Depression is treatable. If there is a family history of depression, learn to recognize symptoms and seek help when needed.