Yes, and the urban-rural divide is often bigger than the difference between countries. Capital cities and business districts almost everywhere tolerate Western casual wear, while smaller towns and villages tend to be noticeably more conservative, especially regarding shorts, sleeveless tops and tight clothing for both men and women.
Coastal resort areas are their own bubble: swimwear and shorts are fine on the beach, but walking into town or a restaurant in beachwear is frowned upon in many countries, and in some places even fined. Inland and mountain regions, religious towns, and pilgrimage sites usually expect covered shoulders and knees regardless of the heat.
A practical approach that has served many expats well: pack layers. A light scarf or shawl and a pair of long trousers can convert a city outfit into a temple-appropriate or village-appropriate one in seconds. Observe what local people your age wear in each setting and match their level of coverage. When rules matter legally, as in a few countries, the official tourism site will say so clearly.