Cedar can be protected when you drive the last nail. You can stain it, but get a stain that has a UV protector in it or apply it over the stain. Stain is just a color, it provides no protection from the sun or rain unless it's specified on the label.
Ron