WD-40 is good for getting rusted up bolts moving again, or indeed, any two things that have seized but now need to move.
Once you’ve got them moving, you should look into using the correct lubricant.
Mind you, it also works quite well on cold/damp engines. A quick spray down the air intake works wonders on an old Landrover.