Hardware,
Yeah, it does, but said residue won't pose a problem. Just wipe it out before you shoot with a dry patch, and you're good to go.
O, and to add: in the OP's case, the WD-40 loosened the actual fouling from the bore, which revealed the pitting underneath. It's a common thing to see...