As usual it's not so black and white and is all about balance.

Project where the sole user is you in your kitchen? Sure, hack it together.

Project where you actually want other people to use the product? A research phase matters and helps here.

Consider what the goal is and the amount of effort to invest typically becomes more evident.