Is choosing to commit sin a possibility in Heaven? According to the Bible 'sin' by definition is anything that is against God! Which is why God cannot commit sin [Hebrews 6:18; Titus 1:2], not that He doesn't choose to commit sin. This is because God cannot do anything against Himself [2Tim.2:13]. In other words, it is impossible for God to sin.
However, when we think of the creation we sin because we have the freedom to choose between good and bad. Adam and Eve committed sin because of that freedom. If we assume that they sinned because of the tempter then this is not the case when Satan sinned while being in the very presence of God! Therefore, a free being/entity can commit sin even when that being/entity has no sinful  nature internally or a sinful tempter externally.
All those who enter into Heaven or the presence of God and enjoy eternal life will have free-will. But the question is what makes them not to sin again like Satan or other angels that were sent out from God's presence because of their sin?
Is choosing to commit sin a possibility in Heaven?
The short answer is no.
There is no possibility of sinning in Heaven and thus offending Our Creator further. All will desire to do what is pleasing to God. The desire to sin will no longer exist in heart of the elect.

Will we be free to sin in heaven?
Here is another dilemma. If we answer no, we seem to lack something: free will. If we answer yes, we lack something else: moral perfection. The Heavenly question thus lands us squarely into an earthly and present issue concerning the nature of freedom and of morality and may help us to puncture one of modernity's most pervasive and destructive illusions: the association of freedom with rebellion and of obedience with unfreedom.
Suppose we change the question so as to avoid the ambiguity of the word freedom. Are we able to sin in Heaven? If not, it seems we are programmed and determined rather than free. If so, if temptation is possible in Heaven, Heavenly security against sin is gone. One of the best things to look forward to at death, say the saints, is that &quot;he who has died is freed from sin&quot;. If there is even a possibility of sin in Heaven, that possibility may be actualized, for if the actualization of a possibility is impossible, then it is not a possibility but an impossibility.
How can we preserve both free will and sinlessness in Heaven? Once again, God is our model and solution: we solve this pseudoproblem in the same way God does. He is both free and sinless. How? Let us judge our freedom by His, rather than vice versa.
What do we mean by &quot;freedom&quot;? Sometimes (1) political freedom, freedom from tyranny, oppression, or the denial of our rights; sometimes (2) physical power, ability to act, freedom from hindrance; and sometimes (3) spiritual power to choose (&quot;free will&quot;). Of course we will have all three in Heaven, but why won't we be able to sin, since we will have free will?
Because we will also have a fourth freedom, the most important one of all: freedom from sin, from what makes us not ourselves. We will be free to be the true selves God designed us to be, free to be determined by God. This determination does not remove our freedom but is our freedom, for even now freedom is not simply indetermination; it is freedom to be determined by final causes (purposes) rather than efficient causes (things and events that already exist and act upon us). Our free will means that our present is determined by our future rather than by our past. Final causes are at present only mental pictures and desires. To say we are determined by final causes means that we, like God, create by knowing; that as creative artists our knowledge antecedes and determines the truth of its object, the work of art, rather than conforming to its object, as scientific and empirical knowledge does. But we are objects to God (though subjects to the world); we too, therefore, are true only when we conform to God's knowledge of us, God's artistic plan for our identity. Since our highest freedom means freedom to be ourselves, we are most free when we are most obedient to God's will, which expresses His idea of us. Thus freedom and obedience coincide. To obey God is to be free in the most radical sense: free to be me, free from inauthenticity, free from false being, free from the alien within, not just free from the alien without, the oppressor.
This explains a paradox frequently met in earthly experience: that at the moment of freest choice it feels most like destiny, and at the moment of most destined choice it feels freest. Caesar's crossing the Rubicon, choosing someone to marry, a conversion decision - these all feel both more free and more destined than ordinary choices. C. S. Lewis' explanation of this principle is that it is all of us that chooses; nothing is left over.bTherefore there is nothing in us that opposes the choice; it is certain; it is wholly determined. But it is also wholly free because it is wholly self-determined. The whole self chooses, the divided will is healed.
The answer to our question, then, is that &quot;freedom to sin&quot; is a self-contradictory concept. Sin is inauthenticity and freedom is authenticity; sin is our false self and freedom is our true self Sin is part of Hell and freedom is part of Heaven. The question cannot be resolved, only dissolved, because it confuses Hell with Heaven.

Once in Heaven, our will desires only to do the greater glory in His Presence.
Scripture teaches us that in Heaven no sin is no longer existent.

Rev. 22:4 – “And there shall be no curse any more, but the throne of God and of the Lamb shall be in it, and his servants shall serve him. And they shall see his face: and his name shall be on their foreheads.”
I Cor. 13:12 – “For now we see in a mirror dimly, but then face to face. Now I know in part; then I shall understand fully, even as I have been fully understood.”
Matt. 5:8 – “Blessed are the pure in heart, for they shall see God.”
I John 3:2 – “Beloved, we are God’s children now; it does not yet appear what we shall be, but we know that when he appears we shall be like him, for we shall see him as he is.” - Source

According to Catholicism, the Blessed in Heaven enjoy the gift of Impeccability.

Impeccability is the absence of sin. Christianity teaches this to be an attribute of God (logically God cannot sin, it would mean that he would act against his own will and nature) and therefore it is also attributed to Christ.
Impeccability and Heaven
Early Christians questioned whether the victorious saints in heaven could sin. The widely influential Eastern Church Father and theologian Origen of Alexandria maintained that they could. Official Roman Catholic doctrine holds that they cannot. Although Catholics believe in the gift of free will, saints in heaven already see God face to face and are incapable of sinning (see Pope Benedict XII and beatific vision), i.e., they will necessarily remain in God. The Catechism of the Catholic Church states (emphasis added):

1045 For man, this consummation will be the final realization of the unity of the human race, which God willed from creation and of which the pilgrim Church has been &quot;in the nature of sacrament.&quot; Those who are united with Christ will form the community of the redeemed, &quot;the holy city&quot; of God, &quot;the Bride, the wife of the Lamb.&quot; She will not be wounded any longer by sin, stains, self-love, that destroy or wound the earthly community. The beatific vision, in which God opens himself in an inexhaustible way to the elect, will be the ever-flowing well-spring of happiness, peace, and mutual communion. 1060 At the end of time, the Kingdom of God will come in its fullness. Then the just will reign with Christ for ever, glorified in body and soul, and the material universe itself will be transformed. God will then be &quot;all in all&quot; (⇒ 1 Cor 15:28), in eternal life.

Impeccability and Purgatory
The 13th-century, Dominican theologian Thomas Aquinas taught that souls in Purgatory cannot sin (Summa Theologica, Second Part of the Second Part, Question 83, Article 11, Reply to Objection 3), let alone the saints in heaven. This is the teaching of the Roman Catholic Church, although there are different opinions on the reasons for the impossibility to sin.