That should not be an issue, because every call to for (data, label) in dataloader: shuffles the data (if you set shuffle=True) but still traverses every image in the dataloader, at least in the single-GPU use case (not sure about the multi-GPU case though, because of the randomness and asynchronous behaviour).
As long as there are more iterations than there are mini-batches in the dataloader, you should be fine!