Yes I understand. It works spelled that way. But “no pun intended” doesn’t work because there was no pun in the initial setup. In my version both meanings make sense
I always thought that joke needs an actual pun in the first half so the “no pun intended” has a valid double meaning. I came up with:
I told the sad ghost ten puns to raise its spirits. No pun intendid.
🤔