Yes, but it won’t do the same as therapy. Therapy is the only relationship in which you share your experiences and the person you are talking to has no interest but yours in mind. Also, we understand your mental processes and we know what to look at in terms of health. Do consult good friends, pastors and family, but remember they have a different roll in your life.
My video “What is psychotherapy” can answer this too.