This may be a good move if you secure higher returns than the interest rate on your refinanced mortgage. But keep in mind that there is a risk of loss with every investment. If you refinance, then lose money, you will end up in a worse financial position than if you had not refinanced.