Not really. model.eval() changes the behavior of some layers. For example nn.BatchNorm layers will use their running stats (in the default mode) and nn.Dropout will be deactivated.
If you don’t want to calculate gradients, which is the common case during evaluation, you should wrap the evaluation code into with torch.no_grad().