In many cases, yes, as long as local code allows and the roof structure is sound.