It depends on the photographer's licensing choices. some photographers can share images under a creative commons license which allows them to use them free by any user. that works under specified conditions. you can ask a photographer for permission to use their images.