It’s certainly not a hollywood movie—for the flu, it’s already the case!
Change in Human Social Behavior in Response to a Common Vaccine
https://pubmed.ncbi.nlm.nih.gov/20816312/
Conclusions: These results show that there is an immediate active behavioral response to infection before the expected onset of symptoms or sickness behavior.