Can the story of Noah be literally true?

I think it is a prequel to Jesus’ salvation story. There is a warning that judgment is coming, but God will provide a way of salvation. All who take advantage of the salvation provided will be saved and will live faithful to God in a “new” creation/kingdom.