Once the wd-40 cleaning agents evaporate, it leaves behind a very thin film of oil... but too thin for cycling. Fine for cleaning and water displacement, but once dry, lube with regular bike chain lube.
And replace your chain every 2k miles or so. The 20 bucks is cheap preventative maintenance, making your much more expensive parts like cassettes last much longer. Just like doing oil changes in your car.