Preheat oven to 350 degrees. In an ungreased cake pan, spread pineapple in bottom of the pan. Spread the pie filling on top of the pineapple. Evenly sprinkle the cake mix on top of the pie filling. Pour the margarine over the cake mix. Bake for 1 hour. Frost with whipped cream.