Login redirect based on membership levels

Is there a way to set the redirect page after logging in based on the user's membership level?