Yes. Paraphrasing is Legal and Allowed in research writing as it effectively restates, condenses, and clarifies another author's ideas while validating your research work. This helps the best to rephrase any passage to remove plagiarism and make it unique.