That's awfully late in life to be developing a foundation for morality. It seems far more likely to be extremely influenced by early upbringing.
More controversially, there may even be a genetic component too. https://www.sciencedaily.com/releases/2019/02/190225145632.h...
We are still so early in the understanding of ourselves and, by extension, society.