Yes, it is.
Rejoice, O young man, in your youth, and let your heart cheer you in the days of your youth. Walk in the ways of your heart and the sight of your eyes. But know that for all these things God will bring you into judgment.
Ecclesiastes 11:9
Mitch Chase wonders what this could mean, in light of all that Jesus, Moses, the prophets, and sages of Israel had to say about not following one’s own heart.
Chase makes excellent use of correlation with other wisdom texts as well as the context of the argument within the book of Ecclesiastes to answer the question. And he arrives at a great place.
The writer, in Ecclesiastes 11:9, is not advocating reckless living but Godward living, decisions made overflowing from a heart that fears and follows the Lord.
The only thing I might add to Chase’s conclusion is that, in light of the joy granted as a gift of God, all throughout the book of Ecclesiastes, “the ways of your heart” here are not only the commands of God that have been written on the heart—but also the personal affections and delights God implants when he shapes a person in his image. In other words, when one fears God, not only their Godward morality—but also their Godward hobbies, vocation, and delights—are unlocked to enjoy to the fullest.
As long, of course, as one never forgets that the Lord remains the judge of our hearts’ delights, such that we might walk in the fear of him.
So go swing a baseball bat, plant a rose garden, or audition for a play—to the glory of your creator. Such things are nothing but vanity in themselves. But the gift of God to those with whom he is pleased is the ability to enjoy such vain things to his glory.