Cooking Sauerkraut kills probiotics that make the sauerkraut healthy for you so when you eat cooked sauerkraut it's not as healthy for you as non cooked sauerkraut is.
Still though eating cooked sauerkraut can provide you with some health benefits so it's still good to eat cooked sauerkraut.
But if you want the most health benefits from sauerkraut you should eat the sauerkraut whether canned sauerkraut or homemade sauerkraut raw.
The probiotics in the sauerkraut are what provide your body with the most health benefits from the sauerkraut.
So you should cook the foods first and then place the raw sauerkraut on the cooked foods after you cook them.