Notepad++ only saves a text file so it's not possible to save meta-data like undo actions. These metadata stay in memory as long it is open.
However, if you select "Verbose backup" in the Preference>Backup menu, Notepad++ will keep timestamped backup copies of the file whenever you save it. This will allow you to access older versions of that file later.