Yes, you may add cooked mushrooms. But avoid adding sautéed mushrooms with too much oil, butter, or dairy. It may decrease the airflow and invite unwanted vermins to the compost pile. It is preferable to wash them before adding them to the compost pile.