The text is a proverbial expression suggesting that unpleasant or difficult experiences can lead to positive outcomes. It does not exploit different meanings of a word or similar-sounding words for humorous effect.
Bitter pills may have blessed effects .