With the Sun’s gravity 27.9 times Earth’s, the answer is a definite yes.
Three identifiable atmospheric layers ring the Sun: the photosphere, the chromosphere, and the corona. There is solar activity in all three.
The energy that produces sunlight is generated in the core of the Sun, where hydrogen is converted to helium in a nuclear reaction.
The energy travels out from the core, to the surface, or to the photosphere, where it is released as heat, light, and other radiation.