The Short Version
The core explanation is correct: most autofocus smartphone cameras focus by moving a lens element or lens group slightly forward or backward. The statement is too broad, though, because some phone cameras are fixed-focus and some newer designs can change focus without the same mechanical movement. The practical takeaway remains accurate for most modern autofocus phone cameras.