Yes, you've got the idea!
programs generally return 00 to indicate success, with any other return value indicating some sort of error has occurred.
This is what I tend to do when writing utilities.
However, you are free to use it as it suits you.
Many dos utilities were written that gave return values that allowed batch files to access system functions.
rgds
Zeit.