It is true that pathogenic organisms will be killed by bringing water to boil.
However, this is not gauranteed to destroy toxins produced by organisms. For example, Clostridium botulinum needs to be boiled for ten minutes to destroy the toxin. Cyanobacterial toxins aren't killed by boiling.
Like another poster said, bringing water to the boil will eliminate most safety risks.