Deli meats and pregnancy

So I know deli meats are a big no no to eat during pregnancy, but does anyone know if it’s okay if I cook or warm up the sand which? I ask because I’m craving a salami sandwich, and I know I can’t have it cold but if I can have it hot I’ll be satisfied lol