Yes, you can use a friend as a reference, but only as a personal reference. Friends should not be professional references.