Can I get a flu shot if I have a cold?
Generally, it is not recommended to receive a flu vaccine when you have a cold. Before getting a flu vaccine, you should consult with a healthcare professional and ensure you are in good health. The analysis is as follows:

When the body is experiencing a cold, the immune system is actively fighting off the pathogens causing the cold. At this time, receiving a flu vaccine—which acts as a foreign antigen—will trigger an immune response. Since the body is already under stress from the cold, the additional immune reaction caused by the vaccine may exacerbate symptoms such as fever, fatigue, and headache, thereby affecting recovery.
During a cold, the body's immune function may be somewhat compromised. Getting a flu vaccine at this time might result in an insufficient or ineffective immune response, which could reduce the vaccine's protective effectiveness and fail to achieve the intended prevention of influenza.
Before receiving a flu vaccine, ensure that you are in good health without symptoms of a cold such as fever, cough, or runny nose, and that you are not suffering from any other acute illness. Prior to vaccination, you should truthfully inform the doctor about your health status and any history of allergies so that the doctor can assess whether vaccination is appropriate for you. After vaccination, remain at the vaccination site for approximately 30 minutes for observation to monitor for any adverse reactions.