I have read that eggs are ok to eat as long as the yolks are hard, not runny at all. Does anyone know if this is right?

I've been feeling like poached eggs for the last few weeks & had one before I knew that runny eggs are not good. And now I really feel like one again. I don't mind if it has to be hard in the middle, just wanted to check if you guys know.