In my personal opinion, morality comes from your parents, who get their version of morality from society, church, their family, etc.
Superfly, if you had parents who were present, and if they did not neglect you, and if they had morality codes of their own, then it is perhaps intuitively obvious that they engendered their morality code into your mind, yes.
But can you see all the variables involved here?
Parents are indeed normally the first people that children meet.
Friends are second.
Teachers and priests/ministers are third and forth and at about the same time.
And it continues from there.
My father actually only taught me a very short list of things:
1 - never play with fire except for cooking food;
2 - never kill anything on God's Earth unless you plan to eat it;
3 - never hit or hurt a girl or a woman;
4 - never go anywhere without a knife;
5 - how to fish;
6 - take care of your mother and sisters while I am gone.
He then soon thereafter died. I was 9 years old. He did not have time to teach me much else. Many other kids are in those same shoes too. Life is not always Donna Reed or Father Knows Best.
My mother took us to Catholic Church after he died. Thus nuns and priests and other teachers soon took over. They were great teachers and I learned and have remember their teachings to this day.
My uncle and older cousin taught me how to hunt and shoot, and also self defense. But they did not have a very strong moral code other than to keep the law of the land.
Morality normally involves such choices as "do unto others as you would they do unto you likewise" (a more literal translation from what it really says in the original Greek).
Jesus was an unsurpassed social philosopher.
Morals are very complicated.