If you have a pulled groin or abdominal muscle, it is important to take care to avoid any movements or positions that cause pain or discomfort. Sitting in a cross-legged position, such as Sukhasana (Easy Pose) or Virasana (Hero Pose), may be uncomfortable or even painful if you have a muscle strain. It's best to avoid these poses and any other positions that cause pain until your injury is fully healed.
You can still practice yoga and benefit from its stress-reducing and mind-calming effects, but it's important to choose poses that are safe for your injury. Gentle and restorative poses such as child's pose (Balasana) may be more suitable for you until your injury has healed or you can do mind-calming breathing exercises sitting on chair, if it is possible.
Also, it's important to remember that if the pain persists or increases, it is best to consult with a qualified healthcare professional for a proper diagnosis and treatment. They may suggest physical therapy to help you recover and strengthen your muscles.