The sentence you provided is understandable, but it could be made more natural and clear. Here's a revised version:
"In fact, I don't mind if my friends are similar to me or not; the only thing I care about when it comes to friends is that I can trust them."
This version separates the ideas with a semicolon and clarifies the meaning, making it more natural and easy to understand.