Babies are born to a blank slate. They have to learn everything by observations. If you raise a child in a good environment, then they will become good people. It is, however, a balancing act. There has to be give and take. The only exceptions to this are mental disorders. They can't be helped and manifest differently in different people, but it is still up to the parents to step up and teach them how to live with their disability.
Yes, parents are the one that provide things for their children, and children learn a lot from their parents. But one thing we should remember, parents can't take control of everything. At the end of the day, kids will grow up and be adults, they have to take care of their lives and be responsible because they will also get married