I believe you mean this: Is writing "for eg" wrong? Yes, it is wrong.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Yes.
That is because eg means for example, and you don't want to write for for example.