The Course talks with regards to the ego in a means that's outside of what Freud did. Freud saw the ego as acquiring some sort of worth, like a mediator in between our morals and mores around the just one hand, and our unconscious urges and impulses on one other. https://awakening-mind.org/resources/a-courseinmiracles/