Yes, you can skip onions and garlic, but it may impact the overall flavor of the dish.