WP automatically generates several size images when you upload. You can add to these sizes. It is up to your theme to use the different sizes.
https://www.hostinger.com/tutorials/wordpress-images-sizes
https://premium.wpmudev.org/blog/wordpress-image-sizes/