The infection produces not only antibodies but also generates memory in the lymphocytes. These cells recognize the pathogen on subsequent attack and generate antibodies to neutralize the pathogen, so his grandmother is right and the boy will not get the disease for rest of his life.