Can I export my chart of accounts, edit and import it back
Ensure you know the risks of this
Yes.
However, this comes with serious WARNINGS!
If you do this, you can NOT change both account code AND account name.
Xero needs to match one of these two on reimport.
Changing both in excel, adds serious risk as you may import and it could archive or delete accounts.