It is shown that the Noether theorem can be extended for some equations associated (accompanying) with Euler-Lagrange equation. Each symmetry of Lagrangian yields a class of accompanying equations possessing conservation law (first integral). The generalization is done for canonical Hamiltonian equations as well.