Yes, you can have a fire pit under a gazebo as long as there is adequate clearance around the perimeter of the fire pit. Make sure to keep any flammable materials at least three feet away from the heat source.