That is permissible as long as you have the rights to the story.