Is there a way to send out a new coupon everytime someone

Hello,

Is there a way to send out a new coupon everytime someone makes a purchase? Like in that order confirmation a coupon for their next order?

Thank you