JLBorges is demonstrating to you how you would accomplish this using smart pointers (smart pointers provide automatic memory management and are more preferable). If you do not want to use smart pointers then you would do it the way you mentioned. Just remember to de-allocate the used memory from the heap (or the freestore) once you're done with it.
1 2 3 4 5 6
People* newPerson = new People(); // newPerson now points to an object of type "People" on the heap.
newPerson = nullptr;