If the power cord performs some type of filtering than probably the longer the better. If the cord is to transfer current like for a Amplifier or a power conditioner than a heavier gauge shorter wire would be best.
But in reality, I have used quality power cords that are a few feet long and some that are 5 meters long. If they are properly designed for the task there should be no problem with sound quality.