Comments are a file-system feature, they will not change the checksum of a file as the content of the file does not change. You can easily try this yourself on Amiga:
Calculate the checksum of a file without comment, then add a comment to that file and perform the checksum calculation again, the result will be the same.
See autodocs for
SetComment (dos.library) for some more info.