Sometimes the body is unable to make the correct antibodies or enough antibodies to prevent disease.
However antibodies can be extracted and injected into those who require them.
There is a scientific term for this : artificial passive immunity
“A passive immunity acquired by means of injection of serum containing antibodies to an individual who may have been infected with a particular pathogen.”