A study permit is a legal document IRCC issues, if your study permit gets approved, you will also be allowed to work 20 hours as long as you are a full time student and your DLI institution has authorization by IRCC. After graduating you could be eligible to apply for a post graduate work permit which could lead to permanent residency.