The Course talks in regards to the ego in a means that is definitely beyond what Freud did. Freud saw the Moi as possessing some type of benefit, being a mediator among our morals and mores on the just one hand, and our unconscious urges and impulses on the other. https://awakening-mind.org/resources/a-course-in-miracles/