Some, but not all lubricants will inhibit rust.
I used White Lightning years ago, but didn't care for it. If you like that style of lubricant, Dupont Teflon Multi-Use is cheaper. I've bene using Tri-Flow in recent years. It gets dirty fairly quick, but I'm lazy about chain maintenance and it doesn't require frequent reapplication to stay quiet.