The text is a quote from Sir Walter Scott and is often used to suggest that when people deceive others, they often create a complex situation of lies and deceit. It does not play on different meanings of a word or similar-sounding words for a humorous effect.
What a tangled web we weave , when first we practice to deceive .