John was baptising Jews for repentence, and he scolded the Pharisees because if they were to claim to repent, they should produce fruit in keeping with repentence. John couldn't have baptised for the New Testament church, as his life ended before Jesus rose again.
Matthew 3:7 - 12
But when he saw many of the Pharisees and Sadducees coming to where he was baptizing, he said to them: “You brood of vipers! Who warned you to flee from the coming wrath? Produce fruit in keeping with repentance. And do not think you can say to yourselves, ‘We have Abraham as our father.’ I tell you that out of these stones God can raise up children for Abraham. The ax is already at the root of the trees, and every tree that does not produce good fruit will be cut down and thrown into the fire.
“I baptize you with water for repentance. But after me comes one who is more powerful than I, whose sandals I am not worthy to carry. He will baptize you with the Holy Spirit and fire. His winnowing fork is in his hand, and he will clear his threshing floor, gathering his wheat into the barn and burning up the chaff with unquenchable fire.”
Matthew 3:7 - 12
But when he saw many of the Pharisees and Sadducees coming to where he was baptizing, he said to them: “You brood of vipers! Who warned you to flee from the coming wrath? Produce fruit in keeping with repentance. And do not think you can say to yourselves, ‘We have Abraham as our father.’ I tell you that out of these stones God can raise up children for Abraham. The ax is already at the root of the trees, and every tree that does not produce good fruit will be cut down and thrown into the fire.
“I baptize you with water for repentance. But after me comes one who is more powerful than I, whose sandals I am not worthy to carry. He will baptize you with the Holy Spirit and fire. His winnowing fork is in his hand, and he will clear his threshing floor, gathering his wheat into the barn and burning up the chaff with unquenchable fire.”