Is it okay to talk to friends

Is it okay to talk to my friends and family about troubles in my relationship and ask for advise before talking to my partner about it?