Homeowners eye stock funds as sweet investments

Is refinancing, then investing cash flow savings a wise move?