The life loss and the return to hand both happen at the beginning of the end step as a single effect. It is not two separate effects.

Artwork
Loading artwork…
Brood of Cockroaches
The List · #VIS-53 · EN
Nonfoil—Foil—
Card rules
When this creature is put into your graveyard from the battlefield, at the beginning of the next end step, you lose 1 life and return this card to your hand.
1/1
"It's like waking on a bed of a thousand olives during an earthquake of subtle force." —Afari, *Tales*
Uncommon · Illustrated by Geofrey Darrow & I. Rabarot
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
PreDH Legal
Premodern Legal
Tlr 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
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
The loss of life is not optional.