British MPs to Stop No-Deal Brexit

The same parliament that decided that Britain will leave the EU in less than three months has now voted no to a no-deal Brexit. Had it not been better to do things the other way around?