Yes, you can make dal makhani without onion and garlic. If you add it will taste better.