You can use canned pineapple in Jell-O, but not fresh. Pineapple contains an enzyme that breaks down proteins and since gelatin is made from protein, the enzyme affects Jell-O's ability to set up.  The reason you can use canned pineapple is that the canning process breaks down the enzyme. (Just make sure to drain the pineapple as well as possible.)