Isn't it? The church is not to associate with unrepentant sinners.
Matthew 18:15-18
Dealing With Sin in the Church
15 If your brother or sister sins, go and point out their fault, just between the two of you. If they listen to you, you have won them over. 16 But if they will not listen, take one or two others along, so that every matter may be established by the testimony of two or three witnesses. 17 If they still refuse to listen, tell it to the church; and if they refuse to listen even to the church, treat them as you would a pagan or a tax collector.
18 Truly I tell you, whatever you bind on earth will be bound in heaven, and whatever you loose on earth will be loosed in heaven.