The fact that everybody is on board for five movies doesn't necessarily mean that there's a specific plan for those five films. While it's possible that the DC film universe, of which Shazam! is a part, has been mapped out and there are five specific movies that DC and WB know they want Mary Marvel to appear in, it's more likely that the studio just wants to be sure the actors are under contract if and when they're needed.