Answer
Yes; the sign of q as the caterpillar is climbing is negative.
Work Step by Step
The sign of q is negative because as the system (the caterpillar) is doing work (climbing) on its surroundings (the twig), heat energy (q) is being transferred from the system to the surroundings (caterpillar to the twig).