Rubella vaccine

Hi Girls, so my fertility doctor did my blood test today & found out that I am not immune to Rubella. He said he will give me vaccine in few days & after that I cannot try for baby for 1 month. After that he said you can try. So did you all had this vaccine? I am already frustrated ttcing & now I will to stop trying this month. So, my question is it mandatory to have that vaccine? Anyhow I’m gonna do what my doctor says still want to know your experiences..thankyou 😊