I don't want to make a sweeping generalisation here, but with consideration of the main fighting forces involved in both world wars, the short answer is yes, there are many differences between all aspects of the uniforms of both the belligerents and allied forces of WW1 and WW2.
Most European nations and Russia had distinctive uniforms for each branch of service and also a wide variety of uniforms styles within those branches depending on rank, job or even where the unit was from. Many of these units are steeped in heraldry, so you won't find much difference in an officer Glengarry cap of the Scottish Highlanders during these eras. The Irish Caubeen remained mostly unchanged, as were the Tammie's as worn by Scots.
United States officer caps, which includes the peaked visor and side cap, are noticeably different between the two wars. The US went through several uniform changes from the turn of century through WW2. WW1 US uniforms were very similar to the 1902 design which was adapted from the uniforms used during the Span Am war. Details of the uniforms gradually changed and by the 1930s they were a completely different uniform, including the caps. Uniforms of this era tend to be very formal with stiff peaked caps. WW2 saw more design changes, adopting a gold eagle and in some units such as the AAF a less formal floppy cap called a "crusher" became the norm. Piping on side caps was gold or silver braid for officers.
Of course Germany went through a completely different regime change, the officer caps for all branches in WW1 are significantly different than their counterparts in WW2.