The given text is a proverb suggesting that eating healthy food will prevent the need for medical treatment. It does not exploit different meanings of a word or similar-sounding words for humorous effect.
An apple a day keeps the doctor away .