While it is technically possible to melt margarine in a thin disposable aluminum pan directly on a burner, it is not recommended. The pan could burn through and cause a mess or even ignite the butter. It is safer to use alternative methods such as melting in the oven, leaving it in the sun, or using a microwave in short bursts.