Okay, here's what I think: No, in order to make a punchline funny, you have to have the whole joke's story behind it, so the person you're telling your joke to will understand what point you're trying to make. It can't be funny on it's own because it would seem random, but it is a vital part of a joke nonetheless.
Helpful? :)