A government can change behavior, but not beliefs, through the use of force. The Romans learned that in dealing with Christianity.
So did the Bolsheviks. Try as they did they could not eliminate religion in the old USSR.