In this version of Captain Marvel, the main character is a young woman, Carol Danvers, a pilot in military service on the planet Kree. She is a highly skilled flyer, and is personally very close to her co-pilot, Maria (Lashana Lynch). They are engaged in war against a hostile society, the Skrulls, on their planet. The battles are intergalactic, though set during the late 20th century.
Captain Marvel is a film that attaches the historic comic book name to a female hero. That is OK, although rather unusual, especially since she is never called by that name in the movie. I was an avid fan of Captain Marvel comic books when I was very young and I do not remember him doing battle on other planets...