sure is.. but somehow biology manages it with few issues. It seems like it has a lot to do with the presence of chaperone proteins that babysit the protein as it's coming off the ribosome, preventing pieces of it from sticking together that shouldn't touch, etc.
I'm working on making a model of this chaperone complex relative to a folded protein to get a sense of how it might be interacting with the amino acid chain before it becomes globular
Protein folding is amazing! Seems like it happens in realtime as it's synthesized by the ribosome.. I'll dig around and see if I can find a better resource for you.