MB3 133b: Eating Food Cooked on Shabbos for a Sick Person (318:2-3)

Can a healthy person eating food cooked for a חולה שיש בו סכנה on Shabbos? Fruit cut off a tree on Shabbos for a חולה. Cooking by putting food into something heated by the sun.