Should I Shave Down My Dog's Coat In The Summer?

Will it keep my dog cooler in the summer to shave off his coat? Are there any possible problems that it can cause?