Is this worth purchasing

Hello, There is a 500 Sportsman near me for sale for 800$ canadian and the bike is not getting any spark, im wounder if it is worth buying and getting fixed i know it could be something simple but what is the worst case scenario (Cost wise) to fix it.

I dont know how much you guys will beable to help but any insight on this topic will be greatly appreciated.