I have to agree with Timbercruiser, NO as deer seem strangely attracted to Cedar!
Set up a perimeter fence around your garden set the posts 5-8 feet apart( regular 6 ft. wooden tomato stakes do nicely....and then use 20 lb. test fishing line and make a " fence" by going from stake to stake, wrapping it around a minimum of 3-4 times, thus creating your " invisible fence. Do this around your gardens perimeter leaving an entrance of course for yourself. Then hang Irish Spring soap bars from the stakes. I live in a very high deer population area and usually always have a garden....I am one of the few in my area that NEVER has any trouble with deer in my garden. Neighbors are trying it this year and cannot believe that their gardens are also now being left alone!
The deer can feel the fishing line as it is taut, but cannot see it so will not attempt to jump or cross it, and the soap acts as a deterrent. Been doing this for over 25 years now and it does work!! Good Luck!