Sizes tend to be general predictors. You will get a ball park general size, but then you have to go in and actually see what fits best. May take trying a few bikes too.
As a general example, I'm around 5' 11". In my case, most bike shop pros recommend a 56" road bike size, but I'm far more comfortable with a 54". I actually put a shorter stem on my 56" Allez to get somewhat comfortable, and it is still a compromise. Bike sizing is one of the things in which I highly recommend new cyclist to take their time and try several sizes in several models.