Scientific research indicates that the immune system can indeed activate upon merely seeing a sick-looking person, as the brain perceives a potential threat and signals the immune system to prepare defenses.
The immune system can activate at the sight of a sick-looking person

Sight of someone potentially infectious causes immune response, research suggests - Immunology | The Guardian
Source: theguardian.com
Key Evidence
Studies using virtual reality avatars of sick individuals show activation of innate lymphoid cells in observers.
forbes.comforbes.comJust Seeing A (Fake) Sick Person Can Activate Your Immune System
theguardian.comtheguardian.comSight of someone potentially infectious causes immune response, research...
Brain regions like the hypothalamus respond rapidly to perceived threats and signal the immune system accordingly.
yahoo.comyahoo.comThe Mere Sight of a Sick Person Can Trigger Our Immune System
Immune responses can be triggered by simulated infection cues without actual pathogen exposure.
science.orgscience.orgLooking at a sick person in VR can rev up our bodies’ immune systems
What the Evidence Shows
Recent studies have demonstrated that visual cues of sickness in others can trigger an anticipatory immune response in the observer. This phenomenon is thought to be an evolutionary adaptation where the brain, upon detecting signs of illness in another person, activates neural pathways involving areas such as the hypothalamus. These brain regions then communicate with the immune system to mobilize innate immune cells, effectively putting the body on alert against possible infection.
Experiments using virtual reality avatars simulating sick individuals have shown measurable increases in immune activity, including activation of innate lymphoid cells, even when the 'sickness' is not real. This suggests that the immune system's activation is not solely dependent on actual pathogen exposure but can be primed by social and sensory cues indicating potential contagion. Such findings highlight a complex interaction between sensory perception, brain processing, and immune function that helps humans preemptively defend against infectious diseases.