Yes, you can still ride but be aware that the battery will not be charged as planned and at some point in time the bike will stop.
You can than re-charge the battery but the same sequence will commence.
Best to just renew the stator, not too much work.
Make sure you get a new stator cover gasket.
You can ride, but once the battery drains, the bike will stutter and stall, so unless the coil is completely dead, you can ride as long the battery has enough juice stored. But that would definitely be a stupid thing to do.