I made a tough decision about money today..

So I'm 20, I had 10k in my 401k.. However I quit my job and since they contributed half I only ended up with 5k.. I had a loan out on it of 1200$ so they took that out. I decided to withdraw the money even though I had to pay a fine (almost 1000$) so I got 3k in my bank now... I'm going To pay off my predatory loans (I have 2 at 26% interest) I only took these loans out because my ex was cheating on me and I had to move out that day and had no option at the time I could afford to pay them off within a month but then they hired like 20 people.. And my job is commission based so they cut my pay into a third. I just want some reassuance I'm making the right decision I have no one to ask advice from but I figured taking the 1000$ fine was better than continuing to pay the loan and pay like 5k in total interest...