Yes. You must pay an additional 10% early withdrawal tax unless an exception applies.
Exceptions to the 10% additional tax.
... and using the funds to pay a student loan is not an exception to the penalty.