Hep A and Typhoid shot while pregnant

Patient: Hi doc. I just found out that I am pregnant. I am traveling to Jamaica in 2 months. I saw that it is recommended that you have a hepatitis A and a typhoid shot, is it safe to get those while you are pregnant?