Yes, the node IDs are persistent in the Stream Cache for a given model. More information is provided in our docs on this topic. The relevant description is:
Also it’s important to note that when the data is stored in the StreamCache, IDs will still stay the same, which means that the IDs created during authoring, the IDs in the XML, and the IDs returned in the web client will be the same.