I'd hate to be that guy, but this -- focusing on the bolded -- is objectively and certifiably false. Even before "Captain Marvel" became a Marvel thing (it used to be DC; see GeekyDad 's post I quoted below), several characters were known as "Captain Marvel" way before Carol Danvers, the white chick we know from the movies. The very first Marvel Comics hero known as Captain Marvel was actually a dude; Mar-Vell, who for some reason was made a chick in the movie. The second Captain Marvel was Monica Rambeau, a black chick (the same Monica Rambeau that has shown up in the Captain Marvel movie as a kid and WandaVision as an adult). Etc etc... It wasn't until the 4th or 5th hero that Carol Danvers became Captain Marvel.She's always been an uber powerful white female in the comics.
I guess older folks like myself always thought of this guy when we thought of Capt. Marvel: