It depends on multiple things. How close is the computer to the kitchen? Does your case have many air vents or is it relatively closed. The one that can cause the most harm is steam because it condenses into water, which can heavily damage computer components.