No, the size doesn't have to be exact, but you can spend lots of time and money changing stems, bars, and seatposts with more or less setback to make up for a bad fit.
__________________
Some people are like a Slinky ... not really good for anything, but you still can't help but smile when you shove them down the stairs.