The Course talks with regards to the ego in a means which is further than what Freud did. Freud saw the ego as acquiring some form of benefit, as a mediator amongst our morals and mores over the 1 hand, and our unconscious urges and impulses on another. Jesus suggests https://awakening-mind.org/resources/a-course-in-miracles/