If you know you can manage your loans one way or another, even those you doing your training, go for it.
If you cant get a pilot job, right after your training, you can always get some factory job meanwhile and pay down your debts.
In my case, I worked for 2 years, saved some money. Got help from my parents and took some loans.
Its all individual m8, you must act according to your situation.