Is ham really bad for you when you’re pregnant

I’ve been craving a ham sandwich for so long but I heard that we shouldn’t be eating ham, it was a warmed up ham sandwich, and now I feel all queasy and nauseous:( should I be worried ?