dnd 5e – How does Favored Foe interact with “Smite” spells, such as Hail of Thorns?

Suppose I’m a ranger using the variant rules in Tahsa’s Cauldron of Everything, I’m concentrating on Hail of Thorns, and I hit a creature with a ranged weapon attack.
Can I mark that creature with my Favored Foe ability and apply the effect of Hail of Thorns?