It is not the case. The size of the uploaded image does not have to be same. But the size has to be greater than thumbnail size used for the shop page.
In the Square theme you need to upload the product size greater than 400×400, the image will appear in same size. Mean you can upload image with random size greater than 400×400 and the product page will automatically crop the image to show all the images with same size.