Multi-tier affiliate program

Is it possible to create a multi-tier affiliate program?