How do most CG artists go about making realistic textures

I wanted to know how most CG artists create textures such as wood or rock textures. Do they take pictures and edit them or make them from scratch. Thanks in advance!