No, they were not.
Their wills were still completely theirs, and the choices they made were their own. Mary’s yes was her yes, and Judas’ no was his no.
This is a complex topic, as we know that God is omnipotent, and therefore “knows the future” from our perspective. However, from God’s perspective, all of time is one simultaneous now. From our perspective, God certainly did know that Judas was going to betray Jesus; however, that does not detract from the fact that Judas made the free will choice. From God’s perspective, He knew that Judas would betray Jesus because that it what Judas chose to do.
It’s really hard for us to understand how God’s sovereignty and knowledge coexist with our free will. However, we know that God cannot will evil (as evil is a lack of good, and God is perfect good, so He cannot be lacking), and we know that He desires the salvation of all people, so we know that He would not create someone whose only possible outcome is damnation. That sort of thinking is called double predestination, and it’s a heresy.