For a polar bear? I guess in theory it’s possible but I’ve never heard bear spray recommended for polar bears.
If you want to go backpacking in Svalbard I’ve heard you need to rent a gun and also set up alarm trip wires around your camp. Polar bears are built different.