Yes, but it is subject to capital gain taxes and there is a certain process. Cash can be taken during the sale and funds will be paid directly to you before the 1031 exchange begins. On the other hand, if the replacement property is of a lower price than the sold property, the difference will be given to you upon purchase and you’ll be subject to your taxes. If you take out cash during the exchange process, it can invalidate the entire thing.