The Course talks concerning the Moi in a method that's outside of what Freud did. Freud observed the ego as possessing some type of benefit, as a mediator among our morals and mores to the one hand, and our unconscious urges and impulses on another. Jesus states in the Course https://awakening-mind.org/resources/a-course-in-miracles/