Sorry that the topic was very vague, I'll explain better now.
Lets say there's a class, and declared inside the class is a pointer.
When I create an instance of the class in main, and then destroy it, will the pointer in the class be destroyed as well?
Or will it just be left there taking up memory?
If the pointer in the class points to something that's dynamically allocated, then no. That bit of memory that the class's pointer points to is NOT freed.
Obligatory mention that that's not neccessarily true. However, in the sense that "every call to new must be met with an explicit delete", that's correct.
If you are manually cleaning up, you're probably doing it wrong.
You should always use some kind of container to manage memory (ie: prefer unique_ptr over using a raw pointer for dynamic memory). Or at least... you should do so whenever practical -- which is most of the time.