Of course, everyone will do that, but it is the last option and it is recommended that before starting to invest, we must have an emergency fund so that the investment that has been planned for the future is not disturbed, that is the function of an emergency fund and it is always emphasized that we have it before starting to invest.
Without emergency fund every investment is always nonsense because investment is always on risk and emergency can happen any time anywhere if someone not understanding this and having stuck funds in any investment or other thing he is going to sucks because no one helps always need to manage and also understand to risk management works.
Peoples those real understand consequences and environment of investment and trading always have their strategy because they know if they fail then surely It's going to worst for them so working on all points and having good strategy always works.