It is best to cook beef to kill of any bacteria. Cook steaks to at least 130° to reduce the risk of any bacteria in the meat, which can cause foodborne illnesses (food poisoning).
It is best to purchase a meat thermometer to accurately test the internal temperature of any meat you are cooking!
"The Food and Drug Administration (FDA) recommends that populations susceptible to developing foodborne illnesses completely avoid raw or undercooked beef. These include pregnant women, young children, older adults, and those with compromised immune systems." Healthline