Not exactly, at least not the immune system most know.
In the acquired immune system, a disease enters your body and starts making you feel ill. Your immune system can now destroy this disease because it is in you and it has sensed it. Sometimes diseases are sensed so quickly and the body is already ready for it (due to memory b-cells)
that you never feel it. This often happens with the chicken poxs.
However the innate immune system can completely prevent certain diseases. Your innate immune system is made up of your skin, your digestive track (primarily the stomach and its acid), and mucus membranes (like inside your nose and lungs). Those systems can block diseases and send them away before they fully enter the body (cool facts, the space in your lungs and your digestive system are not considered "inside the body" - that's right, there is basically a hole going right through your person.)
white blood cells
Because our bodies have evolved to defend ourselves from these pathogens. We have an "immune system".
Immunity.
a vaccine
Auto-immune
Natural immunity, such as skin. For example, the skin is a physical barrier that keeps out pathogens (disease causing factors).
Antibodies are special molecules of protein produced by the immune system that match parts of pathogens and prevent them from infecting cells.
fight against illnesses
by a weakend immune system letting pathogens into the body.
Active immunity occurs when an individual is exposed to the disease causing organism, and the immune system produces antibodies to counteract the disease. Future exposure to the same pathogens will stimulate a rapid response from the immune system to produce antibodies. Passive immunity occurs when an individual receives antibodies instead of inducing the immune system to produce antibodies.
The function of the immune system is to protect your body from infection by pathogens and foreign invaders, or what the body perceives as invading "germs". Your immune system works to identify pathogens and sometimes other unrecognized cells, like tumor cells, that could cause disease and then to eliminate them from your system. Your body's immune system has an incredibly difficult task in this because some of these pathogens can be "sneaky": they can redesign (mutate) themselves to trick the immune system into misidentifying them as harmless cells rather than appropriately treating them as foreign invaders.
The immune system identifies, remembers, attacks and destroys disease-causing invaders or infected cells.
A vaccine.