It could be. Certainly expressions like "getting your blood up" suggest so.
But it could also be about heritage, about family or culture - morality is taught, wouldn't you say? But your position in life is often something you're born with, and that skews everything one way or another.