Dish soap doesn't harm your dishwasher, but it can ruin your house or floors. If you are home, immediately turn off the dishwasher and scoop out the foam. Wipe up any dish soap from the surrounding area with towels.