WD-40 makes a good lubricant, and a good rust remover, but it is a very light lubricant, and doesn’t tend to stick around on things.
That is, it’s a good lubricant if you need something lubed for a short time, etc. However, 3-in-1 oil is much better for most things that need lubricated. Well, except for that.