Once our immune system recognize the foreign body into us then it will start attacking it which also applies to the vaccines that is why vaccines are created with the same virus which is at inactive status and this is the reason why it took years and decades to find the vaccines for some virus but now we got developed a lot in our medical field but still we need enough time to observe the side effects.