The Course talks concerning the Moi in a means that may be further than what Freud did. Freud observed the ego as having some sort of benefit, to be a mediator involving our morals and mores about the a single hand, and our unconscious urges and impulses on the other. https://awakening-mind.org/resources/a-course-in-miracles/