Food not to eat

So I know you’re not supposed to eat cured/smoked meats but I’m wondering if it’s aright if you cook the cured/smoked meat first?