In the government regulations, IRPR section 188, you are exempt from requiring a study permit if you are taking a program of study of 6 months or less that will be completed within the period of your visitor visa.
However, there may also be other factors that will dictate the need for a study permit. At the time of writing this article, one's vaccination status for Covid-19 was such a factor. One should refer to IRCC for the most current information on this and for any other information required regarding study permits. [See IRCC: Study permit]