Why is this so?

if i have a batt in my camera and it only last 30mins, then i put it in my warm pocket for a while, then resume shooting with it, will it works?