does this return 2 if the file does not exist or cannot be opened?

int update_pic(User *user, const char *filename) {
    // file cannot be opened
    FILE *file = fopen(filename, "rb");
    if (file == NULL) {
        return 2;
    }
       return -1;
}
