You are expressing generic fears and others have already chimed in. Of course with so many variables, PR is no guaranteed even if you find an employer who says finish your diploma and I have a job waiting for you. But I will say this, unless you come from a country where your life is threatened, do not sink your life savings into a degree hoping it will help you buy your way into a PR status. In fact, your investment into this should only be to a certain extent that if things do not work out, you can still treat it as an overpriced vacation and get on with your life.
Canada is a very expensive country and I feel among comparable countries, cost of groceries and essentials are perhaps the highest in the world. Affordable housing is non existent in places like Toronto and contrary to what is written and promised, you can be taken advantage of as soon as it is evident that you are on a temporary status with limited means. Something as basic as housing will require a Canadian credit history which you, as a new and temp resident, will obviously not have as soon as you get here. Getting survival jobs can also be difficult and not a breeze and inflation is taking a heavy toll on everyday essentials.
What I have written is just a tip of the iceberg and life is certainly not a breeze contrary to what you see on YT videos and the rosy pictures painted online. So look at it objectively and dont put all your eggs in one basket