Yes, you can omit the onion and garlic, if needed. The taste may not be as flavorful or balanced. Always taste and adjust seasonings as necessary.