Like with any cooking activity, you should be very careful around heat or open flame. Don't be afraid of getting creative in the kitchen, though! So, as long as you stay alert and cautious, roasting marshmallows over a gas flame is perfectly fine.