No, you still need to pass the parameters as:
torch.optim.SGD(model.parameters(), lr=1e-4)
# or as a list
torch.optim.SGD([param1, param2], lr=1e-4)

The optimizer will then use the param.grad attributes to update them.