The Course talks regarding the ego in a means that is outside of what Freud did. Freud saw the ego as having some type of benefit, being a mediator between our morals and mores about the one hand, and our unconscious urges and impulses on the opposite. Jesus states in https://awakening-mind.org/resources/a-course-in-miracles/