Yes — but it’s not automatic. Transforming desire into compassion in the world is possible if the underlying energy of wanting is redirected.
Desire at its root is an impulse toward connection, fulfillment, or relief from suffering — it’s just that in everyday life it often gets channeled toward personal gratification. If we can shift the focus from “I want for me” to “I want well-being for others (and myself)”, the same drive can become compassion.
Here’s a simple progression:
In spiritual traditions, this is sometimes called transforming attachment into loving-kindness — not by denying desire, but by refining and enlarging it until it is no longer just about “me.”