Depends on what the return value type is and what - exactly - the method is supposed to do.
In C and C++, any non-zero value is effectively "true" and zero alone represents "false".
So if you function return value is being used in a conditional:
if (MyFunctiuon())
{
...
Then returning seventeen (or one hundred and eighty) instead of one will make no difference.
If the function do in the return is the
main
function, then yes, it will - 0 indicates "no error, normal termination" while any other value is an error code (which can be translated to an error message to explain why it's a problem).