Hello maddie98. Yes, trimming away the green flesh and eyes is generally sufficient to make the remaining potato safe for consumption. In my many years of cooking family dinners and baking homemade bread, I have often encountered potatoes that turned green due to light exposure during storage. Back when I first started managing our household budget more carefully, I worried about food waste, but I learned that as long as you cut generously around the discolored areas and discard any bitter-tasting pieces, it is completely fine to use them for supper.