No, composite decking will not attract rats. Rats only use decking as a hideout whilst trying to scavenge food.