Cooking food on Shabbat

Hi, if I know someone cooked food on Shabbat is it considered not kosher and can not be eaten at all?

My assumption from your question is that it was cooked by a fellow Jew. And so on Shabbat you would not be able to eat it, but it is permissible after Shabbat.