Does certain SD card have much affect on the quality of photos?
Thats exactly the point of digital: all data is either a 0 or a 1.
So if the card has the (analog) values 0.8, 0.3, 0.9, 0.7, 0.9, 0.1, 0.2 stored the data will still be retrieved as 1, 0, 1, 1, 1, 0, 0, making any data degredation much less significant than with analog recording.
Thus, either you still have the data - or its completely gone.
Thus all the SD card can do is
(a) provide data security - dont lose the data, possibly even under hardened conditions (long storage time, radiation, cold, heat, water, corrosion, ...)
(b) provide writing speed - well also reading speed, but writing speed influences how fast photos can be stored on the card during actually shooting, while reading speed only helps with reviewing photos afterwards.