You are very correct about this. In astrology, the Sun represents the consciousness, our spirit and Moon represents our unconsciousness, our soul. Sun is father and all the male that have close relationship to you and Moon is the mother and all the female that have close relationship with you. While Sun is the sign of our Ego our self image and Moon represents our private self that we rather not to bring it out to the daylight. Our emotion Moon reflects the light of the Sun, so if the Sun/Ego is unhappy that will also effects our Moon the emotions side of us.
Psychologically, a child learns the meaning of manhood and womanhood by observing the parentsL. Our understanding as a man or woman and the understanding regarding to the opposite sex will also be greatly influenced by the relationship of our parents.
Yeah, thats Freudian psychologi. And Im not a big fan of it