Is it possible to calculate distance between two objects?
If you know the distance of each star from earth, and the angle between the stars, then you can us the cosine rule to find their distance from each other.  See this for detail
https://en.wikipedia.org/wiki/Law_of_cosines