The Course talks with regards to the ego in a means that's outside of what Freud did. Freud saw the ego as having some type of worth, being a mediator in between our morals and mores within the just one hand, and our unconscious urges and impulses on the other. https://awakening-mind.org/resources/a-course-in-miracles/