In most circumstances, yes you can. Xero has a reasonably flexible Chart of Accounts that will allow you to duplicate your information from a previous software.
Some of the more custom accounting packages may have in-built custom features that Xero can’t duplicate. In this instance, it’s worthwhile checking the requirements of your business before going ahead with the program.
We generally find that the Xero migration process is a great time to reevaluate your business and finance operations to see if there’s a better way to do things. Your current Chart of Accounts may be outdated and a freshen up might be just what it needs.