Of course the memory speed matters lol... faster the better... But if you want to add to the existing memory , buying faster
memory wont make any difference - the additional memory will only run at the same speed as the slowest DIMM present.
Check and make sure motherbaord supports any memory your going to purchase.