No. Here is the pair of pants, and part (b) gives , whereas
If made homotopic to the identity map of the torus, functoriality of homology and homotopy invariance of homology would give
on . But factors through the zero group , so the left side is zero while the right side is the identity on , a contradiction.