Yes, foam in koi ponds can be harmful to the health of your koi fish. It can decrease the dissolved oxygen levels in the water, making it difficult for fish to breathe, and it can also increase the level of harmful chemicals like ammonia and nitrite, which can be toxic to fish. It's important to address the causes of foam in your pond to maintain good water quality and keep your fish healthy.