Is boy used to mean the same thing in the next two sentences?

She made the boy brush his teeth every night.

Most soldiers are only boys in uniform.
the same meaning