Yes your suggestion definitely works! Another option (that may be simpler):
- attach this card to the customer
- set a very short free trial to your subscription (like a few seconds)
- as soon as the subscription ends, Stripe will try to charge the customer, and it will fail