The text is an idiomatic expression implying that a person has control over their own home and privacy. It does not exploit different meanings of a word or similar-sounding words for humorous effect.
A man ' s home is his castle .