You, the actor, must be aware of when you're being funny, but the character you're playing should always be oblivious to the fact.
Jon Lovitz Famously Quoted