Not necessarily. He said they are points on a line. So the interaction might be pair-wise. Think masses connected by springs, but with a different potential.
jbay, if you take them to be unit mass, yes, that's correct expression for kinetic energy. So if your potential energy is correct, then you have your Lagrangian.