The answer has long since been established to be, "No, a person's personhood is morally primary and overrides their economic usefulness or uselessness."
However, history suggests that translating that laudable sentiment into actual resource-allocating policy and social organization is upon occasion slightly less than maximally clear, obvious, or straightforward.