He can. However his application will have to be sent to a visa office outside of Canada (it cannot be processed within Canada). Additionally, to be approved for a study permit you must demonstrate strong ties to your home country and show you have no plans on remaining in Canada long term. This is more difficult to prove if you are already in Canada.