No, for multi-class classification (one target class for each sample), the targets should hold the class indices.
Other frameworks often use one-hot encoded target vectors, which is not necessary in PyTorch.
Have a look at the docs 752 for more information.