Filter all mail with all Contacts

I would like a filter that all emails sent by those who are included in my address book are moved to a “Friends” directory. It’ possible ?

Thanks for the attention.

Albino