According to comicbook.com, the road to Captain Marvel began back in the post-credits scene at the end of Avengers: Infinity War.