It's not wrong if the friendship stays in boundaries. Though it's good to have a friend with whom you feel comfortable to share your thoughts but the friendship should be the second priority so that your partner doesn't feel insecure for whatever reason.