Equivalence between pullback connections of smoothly homotopic maps

Let $f,g:M\rightarrow N$ be smooth maps between smooth manifolds such that there exist a smooth homotopy $H:M\times [0,1]\rightarrow N$ between them. If we have a principal bundle $P\rightarrow N$, we can chose a connection $B$ on $P$ and define an isomorphism $\phi:f^{*}P\rightarrow g^{*}P$ by $\phi(x,p):=(x,\tilde H(1,x))$. Here, $\tilde H(t,x)$ is the lift of $t\rightarrow H(t,x)$, x fixed, induced by $B$.

My questions: is there a gauge transformation taking $\phi^{*}g^{*}B$ to $f^{*}B$?

Thank you very much.

-