Does the Bible contain examples of Christians affecting ungodly societies for the kingdom of God?

Yes, the Bible contains many examples of Christians affecting ungodly societies for the kingdom of God. In the Old Testament, Daniel and his friends were able to influence the Babylonian court and bring about positive change. In the New Testament, the early church was able to spread the gospel and bring about spiritual transformation in the Roman Empire. In both cases, God used His people to bring about His will in ungodly societies.