Yes.
Let's assume you have a set of n items which widths sum to W you want to put in a D wide area.
Then the spacing between items shoud be (D - W) / (n + 1)