I think approaches to relationships are influenced by how your parents got along, but a lot of it depends on where you are mentally and how you view society and the world. My parents hated each other most of the time growing up. I can remember some happy times before I was 10 years old, but most of it after that, and especially all of it age 14 and up, was terrible. My mom played every mind game with my dad, and my dad knew it but put up with it. I know they stayed together for me, because as soon as I graduated high school, they got divorced.
The way my parents' bad example impacted me was how easily I trusted people. For a long time, I had a very difficult time trusting women. Now, I'm fortunate to be very good friends with a married couple who are extremely happy with their marriage. It's amazing to see how they are with each other, and it really does represent a lot of what I feel a marriage should be. Being able to see that has changed my opinion of society, women, and relationships. I'm also fortunate enough to have a girl in my life that I share a lot of that same connection with. I'm not saying she's the one I'll marry, but it feels good to know that relationships can be a beautiful thing.
I don't think anyone who comes from a dysfunctional parental marriage is doomed to be dysfunctional by any means. I just don't think it does a child any favors to be around both parents when both parents are miserable.