Yes, that’s right.
If you don’t need the following layers, your approach should work.
As a quick test you could use your nn.Sequential approach and compare it to the activation from the forward hook of the original model.