Cooking oils are like olive oil, and they can be used as the bike chain lubricant for avoiding rust. But they will attract dust from the road in the dry weather, which is very much annoying. If you are running out of your regular lubes, you can use cooking oil as a secondary choice.