If you put the shelves up against the wall they are going to be in an area of increased bass. I suppose as long as they do not buzz it would be OK. Unless they are going to cover a large percentage of the front wall they will not act as a wall. If they covered the whole wall they certainly would act as a wall. The variations between records in in the order of a few mm.
That would represent the wavelength of somewhere around 60K so they might dampen frequencies above that but down below 20K forget it. You would still need to find your primary reflections and dampen them.