Moral codes dictate the rules or norms within a group or society for what is ‘proper’ behaviour.
They are shared behavioural patterns.
There are some timeless moral codes which are also cross cultural.
Moral codes exert control over actions of member of that society or group and compliance/ adherence is almost involuntary.