Yes. Mushrooms are mostly made up of water and release the liquid when cooked. Cooking the mushrooms before putting them on pizza releases the liquid so it doesn't make your pizza soggy.