Of course it can be done. There are also examples of this. Movies such as Star Wars and Jurassic Park are among the best examples. Avatar is an example of a movie in which the characters are created with CGi.