What is the meaning of [Look before you leap]

Consider all consequences before taking an action, especially when you can’t retract.

Example: X: I’m planning to pursue an MBA. Y: It’s an expensive degree and, moreover, you’ll be out of work for two years. I would say look before you leap.