Yes, this is the risk. Once the work permit is cancelled, the work-type residence permit's basis is gone, and the permit can no longer support re-entry. If you exit on a permit that has since been cancelled, you cannot rely on it to return — you would need a new visa to come back.
Nationwide (all cities)
Valid vs. cancelled
The confusion is between a valid permit and a cancelled one. While the work-type residence permit is still valid, exit and re-entry are fine (no new visa needed). The problem is when the permit's basis has already been cancelled.
The key fact
Here is the key fact. When your employment ends, the employer returns the residence permit and handles exit procedures, and the exit-entry authority can revoke the permit. Once cancelled, the work-type residence permit is no longer a valid basis — relying on it to exit and return means re-entering on a document whose legal basis is gone.
What to do
The Hefei answer states the clean rule: within the validity period of the work-type residence permit you can exit and re-enter without a new visa. The implication is the inverse — outside that validity (i.e. after cancellation), the old permit does not support re-entry, and you would need a new visa to return. So do not exit on a permit you know has been cancelled; get the cancellation sorted and, if you need to return, obtain the appropriate new visa.