There are different ideas about it.
According to many modern musicians, it is best to start with open chords and simple rhythmic patterns.
For others, the best way is to practice scales to develop good neck technique.
The reality is that there isn’t just one ideal way to get started, it depends on the technique you want to use, the guitar you want to play, and the music you want to play.