This is horribly simplistic, it's much more complcated than that.

http://www.worldwidewords.org/qa/qa-pun1.htm