We need more info. about your friend. I assume he is diabetic as you have chosen to put your enquiry here. But we can’t advise if you are putting food in the hamper without knowing what type of diabetes they have. Even then different diabetics use different diets for control.
May be it might be safer to make a hamper of toiletries, comfy slippers, magazines etc… rather than food?