This is what happened to King Solomon. Early in his administration, King Solomon asked God for wisdom, and used wisdom to administer justice (I Kings 3:5-12 cf. vs. 16-28).
King Solomon also did things against God's will. For instance he started marrying women who would turn his heart away from God (I Kings 3:1) early. Early in his administration he also continued to practice offering sacrifices on high places like heathen nations, instead of how God specifically instructed the priest in the book of Leviticus.
Christians, compromising our biblically based values to fit in, and go along with the culture, is like having viruses in our life. Viruses slow us down, and eventually lead to our downfall.
God gives us virus (sin sickness) protection. We are to constantly stay clean before God through the confession of our sins and getting cleansed by God (I John 1:9). Then we must practice consistent obedience to God (John 14:21).
Christians, stay clean, and use proven and tested practices that guarantee our success (I Kings 2:3-4).
Pastor Kennedy (MZO)