Ant-Man and the Wasp take place before Infinity War and Captain Marvel takes place in the 90s, though, that’s arguably to help set up Avengers 4 and not have to deal with the ending of Infinity War.
While for the most part, the movies have taken place in relative real time, Marvel has lately been experimenting with when the movies happen.
Depending on what happens with the story, the effects of Infinity War could stop both of those storylines from fully fleshing out, even if sequels end up being set before Infinity War.
Still, with stories like Spider-Man: Homecoming 2 and Black Panther 2, comments have indicated people were really looking forward to seeing what the future would look like for the characters, especially how it felt for Spider-Man to eventually become an Avenger and for Wakanda to really open up to the world and become a more prominent nation.