Yes, you can. If they aren't overly soft and shriveled, don't have too much green coloring, and aren't moldy then soft potatoes are safe to eat. If eyes or any small impurities start to show, they can easily be removed with a small paring knife or peeler for safe cooking.
More useful articles on a similar topic 👇
Are raw potatoes OK to eat?Can you get sick from eating soft potatoes?