You likely already know, but just in case (and for any readers who don't know).
WD40 is a water displacement compound and so acts as a degreaser and rust softener. It strips the oil and crap off a part, letting it move. It also strips the protective coating off as well. It will rust rapidly without this.
If you use WD40 you need to follow up with replacement oil, or other protection and lubricant. Without it, it will seize up again quite quickly.