Did Noah Do the Right Thing?

READ GENESIS 7:1-24 The Noah movie brings into question Noah’s character, but what about Noah in the Bible itself? Obviously, Aronofsky took a lot of creative license when making the film, but do we have any reason to question if Noah in the Bible was doing the right thing?