Yes, soft-boiled eggs are perfectly safe to eat, as long as they have been kept refrigerated before cooking and are still within their best before date.
Eggs are naturally one of the safest foods. They are protected by three lines of defense against foodborne infection: the hard calcium shell, two membrane layers, and natural antimicrobials in the egg whites.