Yes, you can directly access the layer by its name as seen here:
class MyModel(nn.Module):
    def __init__(self):
        super(MyModel, self).__init__()
        self.conv = nn.Conv2d(3, 3, 3, 1, 1)
        self.fc = nn.Linear(10, 10)
        
    def forward(self, x):
        x = F.relu(self.conv(x))
        x = self.fc(x)
        return x

model = MyModel()
print(model.conv)
> Conv2d(3, 3, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1))