Yes, that's correct, at least to our eyes. Perhaps more correct to say that the sun shines brightest in frequencies that we see as yellow if we treat it as a perfect blackbody (so that its "colour" is only determined by its temperature). In reality, however, it's not a perfect blackbody, and actually would shine brightest in green - or even infrared, depending on how you measure it. The colour of stars is a surprisingly complicated topic!
amazing article loved it but I have one objection. The sun is white , because of our atmosphere it appears orange and red
Yes, that's correct, at least to our eyes. Perhaps more correct to say that the sun shines brightest in frequencies that we see as yellow if we treat it as a perfect blackbody (so that its "colour" is only determined by its temperature). In reality, however, it's not a perfect blackbody, and actually would shine brightest in green - or even infrared, depending on how you measure it. The colour of stars is a surprisingly complicated topic!
https://askanastronomer.org/stars/faq/2015/11/06/is-the-sun-yellow-or-white/