I think potatoes and tomatoes are closely related, both members of the nightshade family?

My concern would be that in order to get the potatoes you would need to dig up the plant and kill the tomatoes?