A quick biology lesson to give you a deeper understanding of how this works:
The
immune system identifies self and non-self entities that have entered
the blood stream. Sugar proteins that cover a virus or the
cell wall of a bacterium would be an example of this. Once these
non-self entities are identified they can then be isolated and disposed
of before the can get established.