You can buy bear spray in Canada, but I'm not sure you can bring it across the border into Canada. When you buy bear spray here, you have to be trained in how to use it, and you have to be registered as possessing it.
But, yes, bear spray is a good idea. Also, practice some bear aware strategies, not just for your sake, but for the bears' sakes. (If they become "problem bears," they may be destroyed.)
https://parks.canada.ca/pn-np/mtn/ours-bears/securite-safety
And you never know, when you're in bear country, if a bear might be just around the corner. One time, my DH and I went for a little walk (I wouldn't even call it a hike), around a path on the grounds of Kananaskis Village, where we were staying. Suddenly, my husband said, "There's a bear." I started to scoff, because there was a sign about bears on the end of an intersecting path, and my husband is the sort of person who would think it was funny to say that when he meant there was an image of a bear on the sign. But, there, on the path, heading right for us, was a black bear. We were literally a few feet away from one of the resort's parking lots.
Another time, we were walking on a path along the river in Banff when, across the river, we saw three bears: a mother grizzly and her two ~yearling cubs. We thought it was no problem, because we didn't know at that time how fast grizzlies can swim. Anyway, they weren't that far away from an event centre where a bbq was happening. This was at dusk, and we watched them settle into the undergrowth, presumably to sleep.
Another time, we saw a huge grizzly a few yards from the road, sitting in a field, scarfing down dandelions. (I believe this was the bear known as "The Boss" IYKYK.) Anyway, this was not far from Banff Townsite, just on the other side of the highway, near a popular picnic area with a pond.
When you camp here, be very careful of how you store your food. Make sure you use the bear-safe bins to dispose of garbage. Don't throw foodstuff into the campfire. Don't leave scraps at the campsite. And when you hike, carry bear spray and make noise.
In the days when we used to camp with our kids, we have switched sites (when they were easier to come by), because the people at the site next to ours were being stupid or because the previous occupants had left food scraps behind.