Backup and restore

Thunderbird hangs up, both on Windows 10 and on 11.
All advice fails.
Last resort is to uninstall and reinstall.
But here’s my question:
Is it possible to somehow backup the accounts so that they can be restored later after a fresh installation?
I have 8 email accounts with different noises, setting everything up from scratch will be really inconvenient.
Secondly, I also have Bluemail, but I hardly use it, can these two applications “interfere” with each other?
Thanks.