Depending on the terms of the refinance, you may be able to sell your home after a cash out refinance. Some lenders include an owner occupancy clause that requires you to live in the home for a certain amount of time before renting or selling it. This could be an open-ended clause with no expiration date in some cases.
If your contract includes an owner occupancy clause, you may run into issues with the mortgage company during the closing process. Before you put your house on the market, double-check the loan documentation.