Yes it's explicit in a midrash in Bereishis Rabbah 70:16:
וְהָיְתָהבּוֹכָהוְאוֹמֶרֶתיְהִירָצוֹןשֶׁלֹאאֶפֹּלבְּגוֹרָלוֹשֶׁלרָשָׁע. אָמַררַבהוּנָאקָשָׁההִיאהַתְּפִלָּהשֶׁבִּטְלָהאֶתהַגְּזֵרָה, וְלֹאעוֹדאֶלָּאשֶׁקָּדְמָהלַאֲחוֹתָה
She would weep and say: ‘May it be His will that I will not fall to the lot of that wicked man.’ Rav Huna said: Prayer is powerful, as it nullified the decree. Moreover, she preceded her sister.