The Course talks concerning the ego in a way that is certainly outside of what Freud did. Freud observed the Moi as acquiring some kind of benefit, to be a mediator involving our morals and mores about the one hand, and our unconscious urges and impulses on another. Jesus states https://awakening-mind.org/resources/a-course-in-miracles/