No its never a right thing to do. My mother had when she was 15 years old, she kept me a secret to my granny for many month. She was ashamed about teenage pregnancy but she new that she made a choice not to abstain so they had to be consequences that she had to endure.
Look where I am today, she loves me more than anything. The is a lot of options for unplanned pregnancy for example adoption, giving the child to a family member, handing the baby to the father or his family.
People are confused with law and morality, they r totally two different things. Legal don't mean that what is being legalized is moral it just mean that the majority agrees with it.