You can, but I really don’t recommend it. The texture of the pie will be much different, and the flavor will change as well. Be sure to taste your canned yams, as they are typically sweetened. Reduce the sugar in the recipe if needed.