Whether one chooses good or evil, it is an exercise of one’s free will; but the purpose of human freedom (what it is) is that a human person can choose the good.
But what is “the good”?
For a modern treatment from a Christian perspective see Veritatis splendor: