On the one hand, it's a holy city. On the other hand, it can get hot during the summer or random heat waves throughout the year, and it's not fun walking around with long pants in the heat. So, the short answer is – yes, you can wear shorts in Jerusalem.