Yes, this is a step you must not skip. The cooking of the paste ensures the onion, garlic and other ingredients are cooked and allows the flavour to develop.