> I wonder, is this what ego means in Buddhism?
That's the correct question to ask, and the short answer is "no."
Non-self means that there is no sperate, unchanging self. You are a constantly changing phenomenon that has arisen due to causality.
You can see how the two might be correlated, but it's loose at best.