Can i get chickenpox vaccine?

I am about to get my period(tonight or tomorrow). Just in case, is it ok to get vaccine when pregnant.??

Edit: we are trying to get pregnant for 2years and when i went to my doctor’s office they did a number of tests to check if everything is ok and told that my system is not immune to chicken pox and asked me to get it done. Can i just pass it?