If one is referencing a prior comment in a conversation that uses a term with multiple meanings, using the alternate meaning to make wordplay, would this be considered a pun? (Note: poor software engineering joke to follow)
Person 1: "It's a stomach bug"
Person 2: "You should probably check the log file."
For some explicit context, bug was intended to reference a germ/sickness, whereas the following line references "bug" in terms of an issue with software - and checking a log file is a common way to solve the issue.
Person 1 did not intend to make a pun, but Person 2 explicitly exposed the dual meaning. Both parties are aware of the word's other meaning.
Should this be considered a pun? If not, is there a more appropriate and specific term for this?