Captain Marvel in the movies and comics has both similarities and differences. Some of the powers and personality traits remain consistent, but the movie might have taken creative liberties in presenting the overall story and character arcs.
In many ways, Captain Marvel in the movies is similar to the comics, but there are also notable variations. For example, the origin story might have been tweaked a bit to fit the cinematic narrative better.