Flu & Pneumonia vaccine

I've just finished my chemotherapy. Is it safe to have the flu and pneumonia vaccines straight away or should I wait a period of time?