The Cute Charm exploit works in Gen 4 games. I'm just wondering because they are different games
No. You didn’t specify but if you are talking about the shiny glitch in the 4th Gen Pokémon games, no. That doesn’t exist in Sword and Shield.