Having a baby without getting married means adultery for an Islamic country and adultrery is forbidden and severely punishable.