I think it’s a bit of a stretch. The “wife had a dream” trope is found in Tacitus.
The wife’s dream is in Matthew.
Her input was most likely why Pilate issued the traditional Passover declaration for the Passover lamb: That it is without fault.
Those words were just as important as Yeshua’s words, which were the traditional utterance of the High Priest: “It is finished.”
.