Yes, and the Good Samaritan in Luke 10 poured oil and wine onto the man’s wounds.
It was the custom of hospitality at that time to annoint your guests’ heads with oil when entering the home. They lived in a dry, dusty land…oil was invigorating and soothing to the skin. In Luke 7 Jesus rebukes Simon the Pharisee for not offering him oil while praising the sinful woman who instead annoints his feet and washes them with her tears.
Oil was used for so many purposes…cleaning, perfume, healing, refreshment, sunscreen, moisturizing, sacrifice, and setting apart as holy for the Lord.
Oil was part of the necessaries of life…for cooking and making bread and lighting the lamps in the house, oil was used for everything.
To be full of joy in the Lord was said to be annointed with “the oil of gladness.” Being annointed with oil is a sign of being filled with the Holy Spirit in our Confirmation.
In ancient Israel, to not annoint yourself was a sign of mourning and grief. Instead of the oil, mourners would throw dusty ashes on themselves. Even the dead were annointed with perfumed oils for their burial, just like Jesus.
So in Psalm 23, God annoints our heads with oil to show His delight in us and His intimate care for us, just like a Shepherd shows care for His sheep. We are annointed and set apart for His use, holy temples of the Lord. It’s a symbol of His healing and comforting Holy Spirit.
Interesting link to uses of oil in Ancient Israel