Yes, if you prefer a milder version or have dietary restrictions, you can omit the onions or garlic. The guacamole will still have a delicious avocado flavor and can be seasoned with alternative herbs or spices.