That should work then. It's pretty hard for a rat, even a determined one, to do a "pull-up" & have the strength to push up on a cage-top- their front legs aren't that strong.
But it's best to have some kind of lock for peace of mind, or if the container lends itself (design-wise) to securing with large binder clips or some other way.