You can transfer if you have a Nintendo switch online membership and save it to the data cloud. If you download on the eshop you don’t have to worry but game card, you have to send to the data cloud or you transfer all your Pokémon to Pokémon home. Pokémon. home is linked to your account/email.
Hope I helped