Yes.It depends on your device.People usually choose root tools to do this ,For example,you can download iroot apk file and follow these instructions:
Step 1. Download and install iRoot on your computer.
Step 2. Connect your device via USB cable to your computer. Here click "Connect...