Yes, one of the best side effects of training Muay Thai is that you will become more capable of defending yourself in the event of an attack or robbery. That said, unless you’re truly a self-defence expert, the safest thing to do is exactly what your attacker asks, especially if they’re armed.