A checksum is strong evidence against accidental corruption and undetected byte changes.
Trust in the result is no stronger than trust in the place from which the reference hash was obtained.
Malware scanning, code signing and checksums answer different questions and should not be treated as substitutes.
The full explanation
Comparing a downloaded file against a published SHA-256 is genuinely worth doing, and it proves less than most people think. It establishes integrity against accident and, if the hash came from somewhere you trust, against tampering — but only that far. Reading what a file says about itself is a different question again. Read the complete guide for the reasoning, examples and definitions behind this answer.