Yes, it does. If using sidHistory there is a bunch of requirements that need to be fulfilled, for example a trust. Please check the documentation for those. However, you can also migrate without sidHistory and optionally migrate your data using a data migration job, replacing the original accounts with the accounts of the target domain.