No. The difference between vaccination and natural infection by a disease is the price infants have to pay to get immunity. Vaccination involves the discomfort of the injection, sometimes resulting in effects such as pain, swelling and redness at the injection site, fever, restlessness or drowsiness – but these resolve in a short while. Only in rare cases do severer side effects develop.
In contrast, the price that infants who catch these diseases pay is usually higher, involving the risk of serious illnesses. The risks may be, for example, paralysis in the case of poliovirus infection, delayed development after being infected by Haemophilus influenzae B, liver failure due to hepatitis B infection, deafness caused by meningitis after pneumococcus or mumps infection and pneumonia that may be caused by measles, whooping cough or chickenpox. These prices are too high to pay for natural immunity against the diseases.
More about possible side effects after vaccination