It is advised that you don't eat ham in pregnancy due to the slight risk of listeria.
You can however safely eat it if it is hot.
So I think a ham toastie would be fine!!!