It will depend on the laws of the country the child was born in as well as on the nationality of the parents. Please check with the helpdesk of the Office of the Commissioner General for Refugees and Stateless Persons (CGRA).