No, that would also create an additional linear layer, and as far as I understand the Keras code, the InputLayer is basically not doing anything.
Just add the dropout layer right after initializing self.linears:
self.linears = nn.ModuleList()
self.linears.append(nn.Dropout())
for n in ...