Question: can you transfer pokemon to sword?
Answer: Pokémon HOME is a free (well, free with an additional paid subscription on top of it) cloud storage service. It not only gives all your Pokémon a literal "home" outside of their respective games but also lets you transfer Pokémon between games. Including Sword and Shield.