I guess you should just be glad it didn't blow while you were riding!

But yeah, you should always have tubes on hand. They get old, so you don't want to have tons of them, but if the nearest bike shop is 2 hours away, keeping a half dozen on hand is a good idea.

Now might also be a good time to think about keeping a nicely stocked seat bag on your bike,