If you mean getting the activations of a specific layer in a network yes, you can do this with hooks. You can see this thread or refer to the docs