The room will always be the most important factor. However, building and treating a custom listening room is more expensive that buying snake-oil cables.
I have heard lovely sound from cheap gear in good rooms, and horrible sound from good gear in the little back rooms of hi fi shops.