Typically, you would not want to put fresh pineapple on ham as the acidity of pineapple breaks down the fibers of the meat and will make ham mushy. However, this is not an issue in cooked glazes, so you can use fresh pineapple to make pineapple sauce for ham so long as you cook it down as instructed.