Can cinema legally use CGI to make another Ernest P Worrell movie?

Or any deceased movie star for that matter, or would they have to get the actors sign off before they die? Have any actors signed for such things?