No, it is not illegal to use a paraphraser as long as you are plagiarizing anything.