The Course talks with regards to the ego in a means that's beyond what Freud did. Freud observed the ego as possessing some kind of value, for a mediator between our morals and mores on the 1 hand, and our unconscious urges and impulses on one other. Jesus suggests in https://awakening-mind.org/resources/a-course-in-miracles/