It isn't right to birth a child without getting married first. Morally, religiously and what have you, it is really wrong and no circumstance makes it right in any way. You can only try to justify it by saying that people actually exercise their free will in situations like this. After all, who are we to judge them?
It is amazing how science has evolved. Some women will take the route of artificial insemination when they feel like time is no longer on their side. They feel like that way, they wouldn't have to be chastised. I am not sure what religion and morals have to say about that.
Some other people think that given the circumstances, adoption can be a good option. You'll be able to give another life joy and hope once again.