The pyramids in Egypt were used for tombs for their kings and pharaohs or very important people. They weren't really used for anything else than a place where people of high class would be buried. So to answer your question, Yes they were used for the same thing.