Yes, it can, if you pass tensors to it:
transform = transforms.Compose([
    transforms.RandomCrop(24),
    transforms.Normalize([0.5, 0.5, 0.5], [0.5, 0.5, 0.5])
])

x = torch.randn(64, 3, 30, 30)
out = transform(x)
print(out.shape)
> torch.Size([64, 3, 24, 24])

CC @JosueCom