Although a sunburn happens hours after being out in the sun, the painful symptoms appear as soon as the physical ones do. When you touch them, the skin feels heated and sensitive. Placing oil on top of sizzling skin will only entrap the heat, worsening your symptoms. Since oil heats up, it's best to place a cooling ingredient on top of your skin instead.
To heal a sunburn, place aloe vera on top of the affected area. Choose one without fragrance or dyes, as they can potentially irritate the skin further. The gel promptly soothes and cools the skin thanks to its anti-inflammatory and antibacterial nature. If you don't have access to aloe vera, you can press a cool, damp washcloth onto the skin.
After a few hours, your skin should start to cool down. Wait until then, or when the sunburn starts to peel, to rub some coconut oil on. Alternatively, using a fragrance-free, moisturizing lotion or a hydrocortisone cream on top of the area will help as well.