Right. It's the husband's fault < /sarc>
He should keep the kid and put the wife up for adoption.
Largely, yes it is. I want children. If I marry someone who told me he didn't want children, yet get pregnant anyway, I would bear some moral responsibility when my child grows up unwanted or unloved.
One of the most important things a future parent for their children can do is choose his or her co-parent (should be spouse) carefully. Too many people marry or just conceive with a person who is clearly not parenting material, hoping that the baby will change them. The innocent child always loses, as he or she cannot divorce their parent if something goes wrong.