Yes, you can replace the fresh beans in this recipe with canned green beans or beans from a jar. Since they are usually cooked already there is no need to precook them before frying. Drain the water from the jar or can and add them to the fried garlic and onion mix. Bear in mind the frying time will now be lower, otherwise they will become too soft. Just make sure they are warm and completely coated with garlic, onion and olive oil mix.