Is ham ok to eat

M
Is it safe to eat pork ham while pregnant? Ive been craving a ham sandwich but idk if its safe to eat???