I'd refine it as 'If feasible, try fixing your diet before going for pills'. The body is adapted to function within a healthy nutritional range. If your diet falls outside that range, it's expected that your body won't function properly. If problems persist despite a good diet, then pills become a more reasonable option.