Assuming good judgement is acquired that way, yes. Only thing is that bad parenting would only take partial blame, not total blame as the person still has free will and it's not practically possible to adhere to one set of morals (or lack thereof) without it.