Frequently you hear the word "molded" instead of "shaped" in this context (at least in America) and should also be accepted.
Not literally of course. That's why it would be really, really helpful and more meaningful if some context is providded. For example, "The children's attitude (toward school) is shaped by their family".
Were you confused by the meaning?
Sounds like wise words
Shaped.......