Yes, you can substitute 1 medium shallot for ¼ cup diced red onion (30g).