Why were Adam and Eve cast out of Eden?

Yes it was relevant.

But as to your question. Yes, they became gods unto themselves, in their own way “knowing” what is good and what is evil.

That also made them evil as only God is good and can be the only standard of good, not themselves.