Historically it did matter. For a period of time, bigger sites (based on the sheer number of pages) seemed to rank better. By now the pros and cons outweigh each other – so it does not make sense to inflate the size of a website artificially by adding low-quality content.