This entirely depends on your loans.
If you're loan rates are larger than the rate you're making in your 401k, then it's better to pay off the loans.
If you're loan rates are larger than the rate you're making in your 401k, then it's better to pay off the loans.