That's correct. Body's immune system works well if given the proper resources. I dare say even better than the flu shot.
They work together. Get proper nutrition, and the flu shot is more effective. Your body can make antibodies more effectively in response to the flu shot.