Partially agree with the first part of your comment, but completely agree with the last part of your comment.
Speaking on the first part of your comment, it is true that children learn from their parents, but understand that this is not completely the situation all the time, just as children learn from their parent, they also learn from people outside the home, like friends in school and in other places they often go to or visit, This is one of the reasons why we see some really good parents in the society, but their kids or children seems kind of wayward, this is part fault of the parents and part fault of the friends such kids are or were allowed to keep.
So, in the nutshell, as much as we parents be a good example to and for our children to emulate from, it doesnt and shouldnt end there, we have to constantly keep watch over them to know the type of people they are going out with, or the type of people coming around our children, for it is commonly said that bad company corrupt good manners, which means that, we can give our children the best of training, but if we allow them keep bad company, they will definitely end up deviating from the good manners and morals we the parents thought them.
Of course, the environment will also influence our children, but if we can raise them correctly and explain that family is above all, and trust is something that we need to value and cannot be violated, then I am sure that the child will understand the value of this, and not will be able to steal from the family budget.
Totally disagree that children follow their parents completely and that kid stole money because he saw some of his parents or relatives do that. There is no way any parent would show and do that in front of the kid. No matter how bad or irresponsible parent is, he will never teach kid anything bad or illegal. The kid can get familiar with stealing from everywhere. Even from cartoons for example. There it is shown that stealing isnt something bad, because main hero will always come and punish the theft.
It is clear that the parent will not show how to steal, or do it in front of him, but he can discuss it at home. In cartoons, the one who steals is a negative character, none of the children wants to be a bad character. Children will steal if you could not establish a proper relationship with them and they do not consider you their friend, of course, in addition to other factors that the child needs.