Yes, the duration of the E-Code is set by the Owner or Admin user, duration of the E-Code can be set for as little as 1 hour to multiple months or can be set as always active, if set to always active the E-Code will not expire unless the Owner or Admin chose to deactivate or remove the E-Code.
The Cloud generated code will expire at the end of the preset period.
There is also an option to create a one-time use E-Code.
You will be able to deactivate and then re-activate the E-Code whenever you need it.