Let $M$ and $N$ be compact manifolds, and $F, G: M \rightarrow N$ two smooth maps such that $F \sim G$, where $\sim$ means smooth homotopic. Then a well-known result is that the degree of $F$ is the same as the degree of $G$.
A corollary is the following: let $F :M \rightarrow M$, then if $F \sim id_M$, where $id_M$ is the identity function on $M$, then the degree of $F$ is 1. My question is if the converse hold as well. Is it true that if we have a map from a compact manifold to itself with degree 1, then this must be homotopic to the identity?
My attempt: if we know that the degree of $F$ is 1, then we have, by definition of degree $$\int_M F^{\star}\omega = \int_M \omega$$ Hence we must have that $F^{\star}$, the pullback of $F$, is equal to the pullback of the identity. Does the fact that two functions have the same pullback imply that they are smooth homotopic? Thanks!