Daf Yomi just learned the Gemara in Yoma 82b-83a. The Gemara has a din that a pregnant woman that has a craving for a certain food is allowed to eat on Yom Kippur. The Gemara then relates the following 2 stories:
הָהִיא עוּבָּרָה דְּאָרַחָא, אֲתוֹ לְקַמֵּיהּ דְּרַבִּי, אֲמַר לְהוּ: זִילוּ לְחוּשׁוּ לַהּ דְּיוֹמָא דְכִיפּוּרֵי הוּא. לְחוּשׁוּ לָהּ וְאִילְּחִישָׁא. קָרֵי עֲלֵיהּ: ״בְּטֶרֶם אֶצָּרְךָ בַבֶּטֶן יְדַעְתִּיךָ וְגוֹ׳״. נְפַק מִינַּהּ רַבִּי יוֹחָנָן.
הָהִיא עוּבָּרָה דְּאָרַחָא, אֲתוֹ לְקַמֵּיהּ דְּרַבִּי חֲנִינָא. אֲמַר לְהוּ: לְחוּשׁוּ לָהּ, וְלָא אִילְּחִישָׁא. קָרֵי עֲלֵיהּ זוֹרוּ רְשָׁעִים מֵרָחֶם״. נְפַק מִינַּהּ שַׁבְּתַאי אָצַר פֵּירֵי.
The Gemara clearly states the Rav Yochanan was already a tzadik in the womb and that שבתאי was a Rasha in the womb.
How does that fit in with the fundamental principle of free will, that every person can choose whether to be good or bad? What choices can a child possibly make in the womb? In fact the Gemara states there is no יצר הרע until a child is born. It sounds like some people are born good and some bad.