The astute reader will notice that technically Noether's theorem applies to invariance of the action, which is the spacetime integral over the Lagrangian density
Hence, you will also need to make sure that the measure is invariant under the transformation as well
Since surface terms do not affect the Euler Lagrange equations, the equations of motion are always trivially invariant upon adding a 4-divergence to the Lagrangian density