This depends on two factors; the printing material and the printing conditions. Each material has its factors that impact the dimensional stability, more of which you can find on the materials page.
However, there are certain measures you can take in order to get better layer adhesion for your prints. For instance, a heated bed can already greatly improve the adhesion of your 3D prints. Make sure you set it at the right temperature, however, as setting it too high will have unwanted effects. The right adhesive also has a great impact. The most commonly used adhesives include hairspray (extra hold), glue sticks or blue painters tape.