No, you should avoid using CrossEntropyLoss on softmax-transformed values. CrossEntropyLoss expects raw logit values and calculates LogSoftmax followed by NLLLoss internally.
This is described in the documentation here 1.
Typically, it’s better practice to do the softmax calculation outside your model forward method so that you can pass the logits directly to the loss function.