Yes, as WD-40 is a liquid. You should never put moisture in your piano.
Get a tech. to look at it. Unless you absolutely know what you're doing, DIY is not an option.