Yes, you can prep shallots ahead of time. They should stay good for about a week in the fridge.