Yes! In fact, Heap works especially well for single-page web apps. It provides extra functionality that other analytics tools don’t, such as automatically capturing all pushState and hashChange events.
See Using Heap With Single Page Application (SPA) Websites for additional recommendations when using Heap on Single Page Applications.