Yes, but there are some considerations..
First of all, ask yourself how long do you plan on remaining in your current home? There are fees to consider that are incurred by refinancing. So if you only plan on being in your home a short time, you may not recoup the fees. To ensure you can make that decision properly, request information in writing that includes all costs and fees incurred in the buying, selling and refinance process. Ask questions if you don’t understand any item.