No the woman in chapter 12 is the nation of Israel in general through whom the Messiah came - the man child. The woman of chapter 17 is Jerusalem. This is continued in chapter 18. Let me show you.
By oldhermit
The Funeral Dirge of Babylon, 1-8
A. The proclamation, “After these things I saw another angel coming down from heaven, having great authority, and the earth was illumined with his glory. And he cried out with a mighty voice, saying,
1. “Fallen, fallen is Babylon the great!” The falling of this once great city into destruction is in keeping with her spiritual fall. She had destroyed herself spiritually and now, God will destroy her through war. Her level of physical destruction was measured out according to the depths of her uncleanness.
2. “She has become a dwelling place of demons and a prison of every unclean spirit, and a prison of every unclean and hateful bird.” This is not talking about the city post destruction. He is not talking about the devastated city as place haunted by demons and spirits. He is not describing a geographical landscape. This is describing the moral character of the city that resulted in her destruction. Spiritually speaking, she had become full of demons, unclean spirits, and birds of prey. These descriptive terms are employed because of immoral affiliations with the nations, not because she was destroyed. This speaks of spiritual decline. Thishad reduced Jerusalem to an immoral, unclean predator who preyed on the helpless and persecuted the Christians. The reason behind this is illustrated by the following statements. “For(because) all the nations have drunk of the wine of the passion of her immorality, and the kings of the earth have committed acts of immorality with her, and the merchants of the earth have become rich by the wealth of her sensuality.” The appetites of this voluptuous city for luxury and decadence had drawn trade for the most precious goods of the world from the other nations.
B. Warning issued to the faithful
“I heard another voice from heaven, saying, “Come out of her, my people, so that you will not participate in her sins and receive of her plagues; for her sins have piled up as high as heaven, and God has remembered her iniquities.”
1. The plea was not only for the saints to distance themselves from this city and her state of immorality and uncleanness, it was also a plea for repentance, 2Corinthians 6:16-18, “Or what agreement has the temple of God with idols? For we are the temple of the living God; just as God said, “I WILL DWELL IN THEM AND WALK AMONG THEM; AND I WILL BE THEIR GOD, AND THEY SHALL BE MY PEOPLE. “Therefore, COME OUT FROM THEIR MIDST AND BE SEPARATE,” says the Lord. “AND DO NOT TOUCH WHAT IS UNCLEAN; And I will welcome you. “And I will be a father to you, and you shall be sons and daughters to Me,” says the Lord Almighty.” This is from Isaiah 52:11 as God urged those who would return to the Lord to separate themselves from the unfaithful city. Now, this angel is calling upon those in Jerusalem who would return to the Lord to separate themselves from this demon-filled and unclean spirit infested city. Do not become participants with her in her sins. The consequences will be participation in her plagues.
2. “Sins have piled up as high as heaven” is simply another way of saying her iniquity has become full. “Then in the fourth generation they will return here, for the iniquity of the Amorite is not yet complete,” Genesis 15:16.
C. The call for vengeance,
This was the plea of the saints beneath the altar in 6:10, “How long, O Lord, holy and true, will You refrain from judging and avenging our blood on those who dwell on the earth?”
1.The time for payback has come and the plea goes up, “give back to her double according to her deeds; in the cup which she has mixed, mix twice as much for her.”
2. Self-glorification to be rewarded with torment and mourning. Jerusalem had assimilated the same attitudes of which King Nebuchadnezzar of Babylon had been guilty hence the quote from Isaiah 47:8-9 regarding ancient Babylon. “To the degree that she glorified herself and lived sensuously, to the same degree give her torment and mourning; for she says in her heart, ‘I SIT as A QUEEN AND I AM NOT A WIDOW, and will never see mourning.’ Jerusalem felt secure in the notion that she was the beloved city of God. She felt confident that no evil could come upon her. She had become arrogant and proud. “For this reason in one day her plagues will come (in other words, sudden judgment would descend upon her quickly.), pestilence and mourning and famine, and she will be burned up with fire; for the Lord God who judges her is strong.” The same fate that befell that ancient city will be visited upon Jerusalem for “God has remembered her iniquities.” Read God's pronouncement upon Babylon in Isaiah 47. This was a mocking and hopeless fate that awaited that city and now God is reading those same charges against Jerusalem and pronouncing upon her the same miserable fate. No wonder God has assigned the name “Babylon the Great” to this once faithful city turned harlot. She had become like Babylon of old.
II. Lament for Babylon, 9-24
The following is a funerary lament by the merchants of the earth over the fall of Jerusalem. Compare the type of language used in this text with that of Isaiah 52 and Jeremiah 51 regarding God's judgments upon ancient Babylon.
“And the kings of the earth, who committed acts of immorality and lived sensuously with her, will weep and lament over her when they see the smoke of her burning, standing at a distance because of the fear of her torment, (They fear the wrath of Rome.) saying, ‘Woe, woe, the great city, Babylon, the strong city! For in one hour your judgment has come.’ “And the merchants of the earth weep and mourn over her, because no one buys their cargoes any more – (Jerusalem was one of the richest cities of the first century and when Jerusalem fell the nations lost a very lucrative trade market.) cargoes of gold and silver and precious stones and pearls and fine linen and purple and silk and scarlet, and every kind of citron wood and every article of ivory and every article made from very costly wood and bronze and iron and marble, and cinnamon and spice and incense and perfume and frankincense and wine and olive oil and fine flour and wheat and cattle and sheep, and cargoes of horses and chariots and slaves and human lives.” (This represents a very extensive clientele of nations and one of the trade items was the slave market. This gives us some idea of the scope and size of the market in Jerusalem. Josephus recorded, “Nor indeed is Judea destitute of such delights as come from the sea, since its maritime places extend as far as Ptolemais: it was parted into eleven portions, of which the royal city Jerusalem was supreme, and presided over all the neighboring country, as the head does over the body.”). Jerusalem was the chief of international commerce. “The fruit you long for has gone from you, and all things that were luxurious and splendid have passed away from you and men will no longer find them.” (Jerusalem had lived in extravagant luxuryand felt secure in their wealth and in their international trade relations). “The merchants of these things, who became rich from her, will stand at a distance because of the fear of her torment, weeping and mourning, saying, ‘Woe, woe, the great city, she who was clothed in fine linen and purple and scarlet, and adorned with gold and precious stones and pearls; for in one hour such great wealth has been laid waste!’ And every ship master and every passenger and sailor, and as many as make their living by the sea, stood at a distance, and were crying out as they saw the smoke of her burning, saying, ‘What city is like the great city?’ “And they threw dust on their heads and were crying out, weeping and mourning, saying, ‘Woe, woe, the great city, in which all who had ships at sea became rich by her wealth, for in one hour she has been laid waste!’ (The fall of Jerusalem had far reaching global economic repercussions. The flow of commerce to and from Jerusalem with the trading nations was gone.) “Rejoice over her, O heaven, and you saints and apostles and prophets, because God has pronounced judgment for you against her.” (God is avenging the blood of all the righteous that Jerusalem has ever been guiltyof shedding. Now those who had been slain for the Lord could rejoice in her destruction). “Then a strong angel took up a stone like a great millstone and threw it into the sea, saying, “So will Babylon, the great city, be thrown down with violence, and will not be found any longer. (This is the same this as the “great mountain” being thrown into the sea in 8:8. The sea represents the collective of humanity or the nations. Whoever remained of Israel would be scattered among the nations.) “And the sound of harpists and musicians and flute-players and trumpeters will not be heard in you any longer; and no craftsman of any craft will be found in you any longer; and the sound of a mill will not be heard in you any longer; and the light of a lamp will not shine in you any longer; and the voice of the bridegroom and bride will not be heard in you any longer; (In other words Jerusalem was to become a dead city.) for your merchants were the great men of the earth, because all the nations were deceived by your sorcery. “And in her was found the blood of prophets and of saints and of all who have been slain on the earth.”In this is fulfilled he words of Jesus in Matthew 23:35, “So that upon you (Jerusalem) may fall the guilt of all the righteous blood shed on earth, from the blood of righteous Abel to the blood of Zechariah, the son of Berechiah, whom you murdered between the temple and the altar.”