The Course talks regarding the ego in a means that's further than what Freud did. Freud noticed the ego as possessing some sort of value, being a mediator in between our morals and mores around the a single hand, and our unconscious urges and impulses on another. Jesus states within https://awakening-mind.org/resources/a-course-in-miracles/