I had this during my first few weeks too and was so worried! My doctor told me to just drink lots of fluids and avoid outside food. It usually settles down in a few days, so just rest up.
My pregnancy tracker app showed that digestive changes are super common in the first trimester. Just monitor your symptoms and log your water intake. If it persists for more than 24 hours, it's best to ask your gynac.
Beta, loose motions can happen due to hormonal changes, but you must be careful not to get dehydrated. Drink coconut water or light buttermilk with a pinch of salt. If it doesn't stop by tomorrow, please call your doctor.
Don't panic, it is quite common as the body is adjusting. Just stick to simple dahi-chawal and ORS water for a day. If you feel too weak or it continues, check with your gynac.
Hormones can mess up your digestion completely in the early weeks. Keep sipping on water and eat light, non-spicy food. But if there are cramps or it's severe, don't wait and contact your doctor.