Many intertantional students in Canada are doing that. Just make sure you wait at least half a year before applying for permanent residence.
Also remember, that a purpose of a student visa is to study. If you say in the consulate that you are planning to apply for permanent residence, you...