No. Save the butter for breakfast.
Butter is the wrong thing to put on a burn. It will trap the heat in the skin and prolong the pain. Use cool water instead.
I do have to say that there are some kitchen supplies that may be useful for the pain of a burn, straight from the medical literature in India: boiled potato skins and honey.
Why honey? Honey is sometimes used for its antibacterial effects. Boiled potato skins may seem to be an unusual treatment, but they maintain a moist environment.
The best thing to do when you grab a hot pan is to cool your burn under running water, and only after it has thoroughly cooled, apply an antibiotic ointment. For severe burns you should go to your local ER.