Does jit support compile?

When I add a line that convert pytorch nn.Module into script-model, I find that the training time becomes longer. Can jit model be optimized by torch.compile ?