per-atom potential

Dear LAMMPS community

is the following syntax correct for computing per-atom potential and kinetic energy?

compute        ep all pe/atom
compute        ek all ke/atom

And for the dump command, is this the correct way to output the atom ID, type, coordinates, and per-atom energies?

dump 1 all custom 100 dump.lammpstrj id type x y z c_ep c_ek

Thank you very much for your time. I am trying to learn and I appreciate any guidance.