Will God forgive me for doing something, knowing it was wrong?
"The Lord is not slack concerning His promise, as some count slackness, but is longsuffering toward us, not willing that any should perish but that all should come to repentance" (II Peter 3:9).
God does not seek to destroy any sinner. It is His preference to save everyone. But His justice also demands that sin must be punished. Therefore, the problem is not whether God will forgive, but whether people will seek God's forgiveness. This is what He told the Israelites. ""Therefore I will judge you, O house of Israel, every one according to his ways," says the Lord GOD. "Repent, and turn from all your transgressions, so that iniquity will not be your ruin. Cast away from you all the transgressions which you have committed, and get yourselves a new heart and a new spirit. For why should you die, O house of Israel? For I have no pleasure in the death of one who dies," says the Lord GOD. "Therefore turn and live!"" (Ezekiel 18:30-32).
Thus the question is: Are you ready and willing to turn away from your sin and do what is right? Or, looking at it another way, if the same sin was presented to you tomorrow would you knowing do it again?
This is where the great problem lays. When we purposely, knowingly do wrong there is almost no motivation to change our ways. Some do eventually see the truth, but most just find excuses to explain why they had to sin. This was the warning of the writer of Hebrews.
"For if we sin willfully after we have received the knowledge of the truth, there no longer remains a sacrifice for sins, but a certain fearful expectation of judgment, and fiery indignation which will devour the adversaries. Anyone who has rejected Moses' law dies without mercy on the testimony of two or three witnesses. Of how much worse punishment, do you suppose, will he be thought worthy who has trampled the Son of God underfoot, counted the blood of the covenant by which he was sanctified a common thing, and insulted the Spirit of grace? For we know Him who said, "Vengeance is Mine, I will repay," says the Lord. And again, "The LORD will judge His people." It is a fearful thing to fall into the hands of the living God. But recall the former days in which, after you were illuminated, you endured a great struggle with sufferings: partly while you were made a spectacle both by reproaches and tribulations, and partly while you became companions of those who were so treated; for you had compassion on me in my chains, and joyfully accepted the plundering of your goods, knowing that you have a better and an enduring possession for yourselves in heaven. Therefore do not cast away your confidence, which has great reward. For you have need of endurance, so that after you have done the will of God, you may receive the promise: "For yet a little while, And He who is coming will come and will not tarry. Now the just shall live by faith; But if anyone draws back, My soul has no pleasure in him." But we are not of those who draw back to perdition, but of those who believe to the saving of the soul" (Hebrews 10:26-39).
Are you going to cast away heaven or return to God and humbly admit your fault? The choice is yours.