Yeah, that's my first interpretation of it. The word "pupil" isn't really used that often to mean "student who is a child" in my dialect. We just say "student" ... so it's definitely not the first meaning I think of.
At least one Tanzanian I know typically uses pupils for children attending primary schools and students for youth attending secondary school. I think it is a British English thing to use pupils for younger students.