Yes. That’s it. A last detail is this only works for single-input layers.
As you can see in the source code of its forward function:
    def forward(self, input):
        for module in self:
            input = module(input)
        return input

Aaand a minor correction:

in which 【layers】 are arranged according to the transmission order of neural networks

Layers are arranged according to the ordering of *layers. The method is not aware of  which is transmission order
If you don’t set a proper ordering, an exception will raise