Thank goodness that I came from a good solid family....as my mother and father instilled in me a sense of "right" and "wrong". Even still, things may go wrong from making a right choice. For example, it may be right to have a really difficult conversation with a friend.....they may hate you for saying what you said for a while....but I'm a firm believer that if you do what is right in love then things will work out in the long run.
I have some friends that didn't have parents that provided brilliant role models but I'm never ceased to be amazed at how they have taught themselves to make right choices. They continuously inspire me on my life's journey.
No matter what your upbringing, you can still make choices today that will help you for tomorrow. Just make "right" ones.