Yes, as a summary of the events, that is literally what happened. But, in order to be literate/literal, one must use the information given in the manner given in scripture. For example, we’re told that the serpent and the dragon are the same. The woman, however, is not Mary. The woman is clothed with the sun, and the moon at her feet, and with a crown of 12 stars. The woman is persecuted, she is nourished for a time, and times, and half a time (3.5 years from other passages), and a flood is sent to destroy her.
This is not Mary. What other could be said to have given birth to Jesus?
The woman is the Virgin of Israel, Miriam, whom you call Mary. She gave birth to JESUS, who is God with us, the Holy One of Israel.
What other could be said to have given birth to Jesus?
There is no other, and thankfully we have the Gospels so we know.