No, because of reactions between the contents (particularly acidic contents) and the can.
The can of beans on the fire is a camping archetype - one I've witnessed people mimic first hand. Seems unhealthy, knowing this now.