The short answer
No — onion is toxic to budgies.
Why
Onion, and the whole allium family (garlic, chives, leeks), contains compounds that damage a bird's red blood cells and can cause anaemia. This applies raw, cooked, powdered or hidden in sauces.
What to do
Keep onion — and the many savoury dishes cooked with it — well away from your budgie.