Yes, of course, but I thought duplicati already has that built in (it downloads a random block after every backup and checks it)
See here: