Yes. You can.
But a loan will have to be repaid with interest. Instead of paying a personal loan EMI, you can do a SIP now and create your Emergency Money.
Also it’s possible that the bank may not give you a personal loan, or take time. You don’t want to be running around doing that when you have your emergency to take care of.