No, you shouldn’t touch your money until you had originally planned to use it. And if it’s in the stock market, that should be a minimum of 5 years out. This is basically trying to time the market, which will burn you 99% of the time because you not only have to time it right when you take your money out, you have to time it right when you put your money back in. The biggest stock market climbs happen after the biggest falls, leaving you on the sideline.
More info: Why Market Timing Doesn’t Work