As long as the pan is enameled, it's perfectly fine. It's not recommended to cook acidic ingredients and sauces in a regular cast iron pan, as they can erode the seasoning or even make your food taste metallic.