In the case of botulism toxin, it's actually the opposite. The spores are extremely resistant to temperature, but the toxin can be destroyed by boiling at normal temp/pressure until all parts have been fully exposed to those temps. Other toxins are still an issue though, and many are heat resistant, so not a good idea to eat potentially contaminated foods.