Is it possible to render the first person completely seperately. Not panini related

Yeah thats what I thought, and yes, sometimes you can see the barrel/iron sights in the view (so just that) The problem is though, the scope might change and the view with it, I think I could make a mask that would work for everything but I was just wondering if there was a smarter more foolproof way to do it.