I dont know if "distance from star" is still considered a big factor.
The first exoplanets they found were all gas giants close to their stars... Because that was what was easiest to see obviously (large shift in luminesounce, large movement of star).
But certainly there were more than they were expecting from the old "inner planets = small rocks, outer = large gas" theory.
Like you said though these were probably formed far from the star then travelled inwards.
Or maybe everything ive said is out of date now anyway.