You can wait for a significant amount of time before taking it out of the molds and there will not be a problem. (unless you are doing a salt bar, or something else that just could not be cut later)
I had a family emergency and left it in the mold a couple weeks, with the top open. No problem.
But, you can generally get it out sooner also, as stated.