Pain should be taken into account by the medical assessor and decision maker when deciding whether you are able to undertake activities in the physical health test.
Even if they didn't, an appeal tribunal most definitely would.
Good luck,
Steve
Nothing on this board constitutes legal advice - always consult a professional about specific problems