We know that a cotangent bundle $T^\star M$ has a canonical symplectic form and $M$ is a nature Lagrangian submanifold of it. A well known result is that any Lagrangian submanifold $X$ in $T^\star M$ can be written as $X=\{(p,f(p)): p\in M\}$, where $f$ is a closed one form. Denote by $[f]$ the Hodge homology group of $f$. Assume that we flow $X$ in a Hamiltonian direction to $Y$, then $Y$ will be a Lagrangian submanifold of $T^\star M$ and we can write it as $Y={(p,g(p)): p\in M}$ for some closed one form $g$. My question is: $ [g]=[f]?$ Thanks in advance!