Food Question

I was wondering if I can eat cold pepperoni and salami while pregnant? Online it says yes and no so i’m not sure.