You can eat eggs raw, so long as you're not pregnant or in an at-risk health group.
Fry them however you like them.
UK chickens are vaccinated against salmonella. Elsewhere, less so. Apparently the US doesn't do it at all, hence their tougher handling regulations.
https://www.foodsafetynews.com/2013/01/poultry-vaccinations-credited-for-uks-big-drop-in-salmonella/
sorry, wrong link - fixed
The UK's National Health Service goes so far as to say
There have been improved food safety controls in recent years. So infants, children, pregnant women and elderly people can now safely eat raw or lightly cooked hen eggs, or foods containing them. Make sure that the eggs you buy have a British Lion stamp mark.
https://www.nhs.uk/live-well/eat-well/eggs-nutrition/
There was a furore in the late 80's when a British politician, Edwina Currie, falsely claimed salmonella was a high risk in eggs. After that all died down [which took quite a while;) safety was increased still further.
Historical précis from the BBC -
http://news.bbc.co.uk/onthisday/hi/dates/stories/december/3/newsid_2519000/2519451.stm
Old, non-https link. Should be safe enough from Auntie Beeb