The timing of vaccination is crucial for cancer patients. Ideally, patients should receive pneumococcal vaccines before starting immunosuppressive treatments such as chemotherapy. If this is not possible, they should be vaccinated during periods of immune recovery. It's important to consult with an oncologist to determine the best timing for vaccination.