Absolutely. Onion and garlic are aromatics that impart flavor, of course, but this dish has so many other flavor elements you'll be fine without it.