Yes, Sigmund Freud was the one who divided our pyches into 3 divisions, the Id, the Ego and the Superego. The Id is the impulsive, selfish side, the Superego is the controlling, moral side and the Ego is (hopefully) the resultant balance between the two. Alas, it's never the case :-)
All the best,
Nonoise