Always a good strategy.
also remember there is a delay when using a stimpak while you shove it in you, so often mid-combat food is a better choice unless you can get behind cover and avoid being shot well ded. Food is actually super useful in FO4, I kind of didn't bother with it in previous games, just nuka-cola and stimpaks.