I used to be a big fan of SETI but I've come around to thinking it's probably a complete waste of time. This will probably get dismissed as "optimistic futurism" but I find the argument compelling that the future of any civilization is a Dyson Swarm for many reasons such as: - Planets are inefficient uses of mass to create living area. IIRC 1% of the mass of Mercury could make enough living area from habitats to hous…
IR radiation is bound by the same laws as all other forms of radiation, most namely the inverse square law.
You would have to be radiating monumental amounts of energy, more than say a red dwarf, to be detectable from "millions of light years" away without fading into the cosmic background as noise.
Think about it this way. With the naked eye you can see a bunch of individual distinguishable stars around ~4000 light years away. These stars produce more energy in a second than mankind has ever produced.
But our closest neighbor, Proxima Centuari, you can't see with the naked eye. Its a red dwarf. And while it still produces unfathomable amounts of energy AND is the closest star to our own. You can't see it.
TLDR: No, a Dyson swarm would not be detectable from "Millions of lightyears away"