No.
When preparing dishes with mushrooms, onions and garlic sometimes turn black, brown, or blue. This phenomenon is related to the activity of certain mushroom enzymes. However, such changes can also occur with completely safe mushrooms.
As for toxins, poisonous mushrooms contain toxins of various natures. There is no universal indicator that can determine their presence.