Yes, you can apply for a Canada Study Permit even if you are in Canada.