The Course talks in regards to the ego in a way that's further than what Freud did. Freud noticed the ego as having some kind of worth, for a mediator amongst our morals and mores over the 1 hand, and our unconscious urges and impulses on the other. Jesus states https://awakening-mind.org/resources/a-courseinmiracles/