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 device". And then, install driver.
Note: Choose “User Agreement” means you accept our service.
Step 3: After detecting your device, iRoot will ask you to root. Click “Root” to allow this step.
step 4: success!