It is ok to put onions in eggs.
Fried eggs with scallion is a delicious dish in Northeast China. Eggs are golden yellow, green onions are green, and the colors are fragrant and delicious.
Onion scrambled eggs
I hope the above answers can help you.
If you are satisfied with my answer, please adopt it.
Thank you. Happy New Year!