It only destroys goblins if it is on the battlefield at the end of turn.

Artwork
Loading artwork…
Goblin Pyromancer
Onslaught · #206 · EN
Nonfoil—Foil—
Card rules
When this creature enters, Goblin creatures get +3/+0 until end of turn.
At the beginning of the end step, destroy all Goblins.
2/2
"The good news is, we figured out how the wand works. The bad news is, we figured out how the wand works."
Rare · Illustrated by Edward P. Beard, Jr.
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
PreDH Legal
Premodern Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions