I could see using a degreaser and then cleaning the degreaser off with weak soapy water and then plain water--after which, post wiping the chain down, using WD-40 to eliminate other traces of water, but one should definitely use a quality bike chain lube as a final step.
But, hey, I'm no expert. I've only been riding a very short time compared to many, if not most here.
Definitely do not use WD-40 as your lubricant.