Yes, you should make sure any mushrooms you eat are thoroughly cooked. Mushrooms contain a compound called chitin which is difficult to digest. Chitin also occurs in arthropod shells giving them strength and flexibility. It readily breaks down with heat, so cooking mushrooms makes them easier on our bodies.