Can I eat fried egg with the yoke?

I'm 24 weeks pregnant and I've been craving fried eggs with the yoke still soft but if I'm not mistaken it's not the safest for the baby.....or am I wrong?