No. There are a variety of factors that go into analyzing a case to see if there’s a chance of winning. For example, if your loans aren’t that high compared to your income, or you just graduated school, it would not be a good case.
To get your student loans discharged in bankruptcy you have to prove what’s called “undue hardship”. To do this you have to demonstrate 3 things:
1) a current inability to repay their student loans,
2) a future inability to repay their student loans, and
3) a past good faith effort to have repaid their student loans.