Hi Charles,
when my wife got pip, she also got ESA, after a lot of questions on the phone with the DWP, as has been said, it depends on contributions and if under retirement age If I remember correctly, hope this helps.
Tim and Mary