It depends on the model definition and in particular how the forward method is implemented.
In your code snippet you are using:
for name, layer in model.named_modules():
    layer.register_forward_hook(get_activation(name))

to register the forward hook for each module.
If the activation functions (e.g. nn.ReLU()) are defined as modules via self.act1 = nn.ReLU(), a separate forward hook will be used for it. However, if the activation functions are used via the functional API in the forward via x = F.relu(x), then no forward hook will be registered for them. In both cases, if the activation function uses inplace=True it’ll be applied (and visible) in the previous layer’s output.