Does human capital compensate for population decline?