Can I use a torchmetrics Metric as loss function?

I need to implement a Tweedie loss, and I saw that in torchmetrics 0.6 there is now a TweedieDevianceScore. Is there any reason I can’t use that for a loss function in training my model?