Yes, you can make smores without a campfire.  Make smores in the oven, in a Blackstone Pizza Oven, in an Air Fryer, in the microwave, or toast the marshmallows on the stove top with a flame.