Well before pyramids, they built "mastabas". https://en.wikipedia.org/wiki/Mastaba
And before that, they "buried their dead in pit graves dug out from the sand" (same article)
That _does_ indicate an increase in sophistication over time, from pit graves, to mastabas, to pyramids.