Membership coupon code

I want to do a promo of my meal planning membership. If I make a 30% off coupon, or a $10 off coupon for a month, would that work on the first payment of their recurring payments, and then stop? Like, if the coupon expires at the end of July, I could run a July special?