Yes, you can.
If you’ve been using Pokémon HOME on your Nintendo Switch, the steps you need to take may vary depending on how you plan to use your current Nintendo Switch and Nintendo Switch 2 going forward.
Please read the official Nintendo support articles below carefully to make sure you understand the necessary steps and important details before proceeding:
How to Transfer User and Save Data on Nintendo Switch
Transfer Guide: Moving to Nintendo Switch 2
If you have any questions about the above procedures, please contact Nintendo Customer Support.