In Holy Bhagavad Gita Adhyay 9 Shlok 20, 21, has said that those who worship me according to the scripture-based worship mentioned in the Vedas for the fulfilment of their desires, they on the basis of their deeds after enjoying in the Great-Heaven, then come in birth-death i.e. even if the yagyas are in accordance with the scriptures, their only benefit is worldly pleasures, heaven and then hell and 84 lakh births of various living beings, until one obtains the three mantras (Om and coded Tat and Sat) from a Complete Saint.
In Bhagavad Gita Adhyay 9 Shlok 22, it is said that those who worship me in accordance with the scriptures without any desires, I myself protect their worship, but there is no liberation.