Yup, pretty much anything will work on it as long as it provides some sort of barrier between the lead post and the battery gasses/moisture in the air.
Thicker stuff like Vaseline will attract more dirt, that’s why I started using wd40, as it attracts very little dirt.