Yes, you can change the OS of an ECS.
If the OS running on an ECS cannot meet service requirements, for example, a higher OS version is required, you can change the ECS OS.
For instructions about how to change an ECS OS, see Changing the OS.