Yes, Autograd will track all operations and will make sure to compute the gradients for all used parameters.
You can treat “models” as a standard layer.
In fact, your custom models and PyTorch’s layers both derive from nn.Module, so you are able to chain models as you would do with layers.