Can I upgrade torch version from 2.0.0 to 2.1.0 in pytorch2.0.0 docker image and run the model?

Can I upgrade torch version from 2.0.0 to 2.1.0 in pytorch2.0.0 docker image and run the model?