That makes sense and I (native English speaker) had always assumed it was something like that.
I wish people would present this as what it is (a childish word game) rather than legitimately “part of English”, so that learners of English don’t think they have to memorize these and actually use them…