It will consider the kernel in order to backprop of course. But, as it is a fixed tensor it won’t learn.
The functional is just a function which applies the convolution. The nn.Module is a class which contains learnable parameters. Those are passed to the optimizer, hence, learned.
Note: Remember that you have to define the filter as a tensor, NOT as a nn.Parameter. Otherwise it will be learned too.