I am wondering if i can set affiliates to pay a member

I am wondering if i can set affiliates to pay a member every time a subscription they referred are paid?
So what i mean is can the referer get paid every month, as long as their referee is paying?
Thanks