How to fix Mail stuck importing messages from a Time Machine backup?
If it is IMAP or Exchange you can skip this process and just add your account afterwards.

I would not advise to skip it if it was a POP3 account because usually it means you only have a local copy of those mailboxes and won't get synced when adding the account again.