For men who suffer from true
hypogonadism (low testosterone),
while there is certainly a correlation between diet, including intake of sugar, and hormones, a diet change is probably going to be insufficient and hormone replacement therapy will likely be indicated.