Yes, sometimes prednisone has been known to give pain relief, especially if it is nerve based pain, as it has been seen that  corticosteroids can reduce spontaneous discharge in an injured nerve, which is usually the cause for neuropathic pain. Dexamethasone, another corticosteroid like prednisone, is used often for pain relief, which means that prednisone or prednisolone can also be used.