When the disease has been throuh you or you had your vaccination done. The immune system recognize the disease and make antibodies.
the answer you put is right