Absolutely! A steak that’s sufficiently seared on the outside but remains pink on the inside is perfectly safe (and delicious!) to eat.
Bacteria can only live on the surface of the steak, and the high temperature required for searing steak will kill all of it.