There is no requirement to have insurance. You can visit without it.
That being said, it's very important to have insurance because Canadian healthcare is very expensive with no insurance.
You can get it after you enter the country, but it is usually much cheaper to buy it in your home country before you travel. Many local insurance companies will have international travel options that are typically quite cheap. Look at your options and decide.