Cocooning should ideally begin before the baby is born. Parents and other household members should receive their vaccinations during the mother’s pregnancy or at least two weeks before coming into close contact with the newborn. This allows enough time for the body to develop immunity.